forked from github/server
translating a couple more spells
removing unnecessary includes of spell.h
This commit is contained in:
parent
f054d324aa
commit
8e2225e4d5
|
@ -251,7 +251,7 @@ print_curses(FILE * F, const faction * viewer, const void * obj, typ_t typ)
|
|||
}
|
||||
if (dh==0) {
|
||||
if (c->type->info_str!=NULL) {
|
||||
strcpy(buf, c->type->info_str);
|
||||
sprintf(buf, "%s (%s)", c->type->info_str, itoa36(c->no));
|
||||
} else {
|
||||
sprintf(buf, "an unknown curse lies on the region. (%s)", itoa36(c->no));
|
||||
}
|
||||
|
|
|
@ -1157,6 +1157,7 @@ parse_quit(void)
|
|||
if (fval(f, FFL_OVERRIDE)) {
|
||||
free(f->override);
|
||||
f->override = strdup(itoa36(rand()));
|
||||
freset(f, FFL_OVERRIDE);
|
||||
}
|
||||
if (turn!=f->lastorders) {
|
||||
char info[256];
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
#include "save.h"
|
||||
#include "ship.h"
|
||||
#include "skill.h"
|
||||
#include "spell.h"
|
||||
#include "unit.h"
|
||||
|
||||
/* util includes */
|
||||
|
@ -3161,7 +3160,6 @@ void
|
|||
attrib_init(void)
|
||||
{
|
||||
/* Alle speicherbaren Attribute müssen hier registriert werden */
|
||||
at_register(&at_unitdissolve);
|
||||
at_register(&at_shiptrail);
|
||||
at_register(&at_familiar);
|
||||
at_register(&at_familiarmage);
|
||||
|
@ -3172,7 +3170,6 @@ attrib_init(void)
|
|||
at_register(&at_mage);
|
||||
at_register(&at_countdown);
|
||||
at_register(&at_curse);
|
||||
at_register(&at_cursewall);
|
||||
|
||||
at_register(&at_seenspell);
|
||||
at_register(&at_deathcloud);
|
||||
|
@ -3205,9 +3202,6 @@ attrib_init(void)
|
|||
register_bordertype(&bt_fogwall);
|
||||
register_bordertype(&bt_wall);
|
||||
register_bordertype(&bt_illusionwall);
|
||||
register_bordertype(&bt_firewall);
|
||||
register_bordertype(&bt_wisps);
|
||||
register_bordertype(&bt_chaosgate);
|
||||
register_bordertype(&bt_road);
|
||||
register_bordertype(&bt_questportal);
|
||||
|
||||
|
@ -3218,9 +3212,6 @@ attrib_init(void)
|
|||
at_register(&at_laen); /* required for old datafiles */
|
||||
#ifdef XECMD_MODULE
|
||||
at_register(&at_xontormiaexpress); /* required for old datafiles */
|
||||
#endif
|
||||
#ifdef WDW_PYRAMIDSPELL
|
||||
at_register(&at_wdwpyramid);
|
||||
#endif
|
||||
at_register(&at_speedup);
|
||||
at_register(&at_nodestroy);
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#include "race.h"
|
||||
#include "region.h"
|
||||
#include "render.h"
|
||||
#include "spell.h"
|
||||
#include "ship.h"
|
||||
#include "skill.h"
|
||||
#include "teleport.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "region.h"
|
||||
#include "ship.h"
|
||||
#include "skill.h"
|
||||
#include "spell.h"
|
||||
#include "unit.h"
|
||||
#ifdef USE_UGROUPS
|
||||
# include "ugroup.h"
|
||||
|
|
|
@ -8224,11 +8224,7 @@ static spell spelldaten[] =
|
|||
(spell_f)sp_blessstonecircle, patzer
|
||||
},
|
||||
{
|
||||
SPL_GWYRRD_ARMORSHIELD, "Rindenhaut",
|
||||
"Dieses vor dem Kampf zu zaubernde Ritual gibt den eigenen Truppen "
|
||||
"einen zusätzlichen Bonus auf ihre Rüstung. Jeder Treffer "
|
||||
"reduziert die Kraft des Zaubers, so dass der Schild sich irgendwann "
|
||||
"im Kampf auflösen wird.", NULL, NULL,
|
||||
SPL_GWYRRD_ARMORSHIELD, "barkskin", NULL, NULL, NULL,
|
||||
M_DRUIDE, (PRECOMBATSPELL | SPELLLEVEL), 2, 12,
|
||||
{
|
||||
{ R_AURA, 4, SPC_LEVEL },
|
||||
|
@ -8240,11 +8236,7 @@ static spell spelldaten[] =
|
|||
(spell_f)sp_armorshield, patzer
|
||||
},
|
||||
{
|
||||
SPL_DROUGHT, "Beschwörung eines Hitzeelementar",
|
||||
"Dieses Ritual beschwört wütende Elementargeister der Hitze. "
|
||||
"Eine Dürre sucht das Land heim. Bäume verdorren, Tiere verenden, "
|
||||
"und die Ernte fällt aus. Für Tagelöhner gibt es kaum noch Arbeit "
|
||||
"in der Landwirtschaft zu finden.", NULL, NULL,
|
||||
SPL_DROUGHT, "summonfireelemental", NULL, NULL, NULL,
|
||||
M_DRUIDE, (FARCASTING|REGIONSPELL|TESTRESISTANCE), 5, 13,
|
||||
{
|
||||
{ R_AURA, 600, SPC_FIX },
|
||||
|
@ -8256,12 +8248,7 @@ static spell spelldaten[] =
|
|||
(spell_f)sp_drought, patzer
|
||||
},
|
||||
{
|
||||
SPL_FOG_OF_CONFUSION, "Nebel der Verwirrung",
|
||||
"Der Druide beschwört die Elementargeister des Nebels. Sie werden sich "
|
||||
"für einige Zeit in der Umgebung festsetzen und sie mit dichtem Nebel "
|
||||
"überziehen. Personen innerhalb des magischen Nebels verlieren die "
|
||||
"Orientierung und haben große Schwierigkeiten, sich in eine bestimmte "
|
||||
"Richtung zu bewegen.", NULL, NULL,
|
||||
SPL_FOG_OF_CONFUSION, "fogofconfusion", NULL, NULL, NULL,
|
||||
M_DRUIDE,
|
||||
(FARCASTING|SPELLLEVEL),
|
||||
5, 14,
|
||||
|
@ -10602,6 +10589,14 @@ init_spells(void)
|
|||
for (i=0;spelldaten[i].id!=SPL_NOSPELL;++i) {
|
||||
register_spell(spelldaten+i);
|
||||
}
|
||||
at_register(&at_cursewall);
|
||||
at_register(&at_unitdissolve);
|
||||
#ifdef WDW_PYRAMIDSPELL
|
||||
at_register(&at_wdwpyramid);
|
||||
#endif
|
||||
register_bordertype(&bt_firewall);
|
||||
register_bordertype(&bt_wisps);
|
||||
register_bordertype(&bt_chaosgate);
|
||||
}
|
||||
|
||||
static boolean
|
||||
|
|
|
@ -57,30 +57,31 @@ cinfo_building(const struct locale * lang, const void * obj, typ_t typ, curse *c
|
|||
static int
|
||||
cinfo_magicrunes(const struct locale* lang, const void * obj, typ_t typ, curse *c, int self)
|
||||
{
|
||||
|
||||
message * msg = NULL;
|
||||
if (typ == TYP_BUILDING){
|
||||
building * b;
|
||||
b = (building*)obj;
|
||||
if (self != 0){
|
||||
sprintf(buf, "Auf den Mauern von %s erkennt man seltsame Runen. (%s)",
|
||||
b->name, curseid(c));
|
||||
return 1;
|
||||
if (self != 0) {
|
||||
msg = msg_message(mkname("curseinfo", "magicrunes_building"), "building id", b, c->no);
|
||||
}
|
||||
} else if (typ == TYP_SHIP) {
|
||||
ship *sh;
|
||||
sh = (ship*)obj;
|
||||
if (self != 0){
|
||||
sprintf(buf, "Auf den Planken von %s erkennt man seltsame Runen. (%s)",
|
||||
sh->name, curseid(c));
|
||||
return 1;
|
||||
msg = msg_message(mkname("curseinfo", "magicrunes_ship"), "ship id", sh, c->no);
|
||||
}
|
||||
}
|
||||
|
||||
if (msg!=NULL) {
|
||||
nr_render(msg, lang, buf, sizeof(buf), NULL);
|
||||
msg_release(msg);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
static struct curse_type ct_magicrunes = { "magicrunes",
|
||||
CURSETYP_NORM, 0, M_SUMEFFECT,
|
||||
"Dieses Zauber verstärkt die natürliche Widerstandskraft gegen eine "
|
||||
"Dieser Zauber verstärkt die natürliche Widerstandskraft gegen eine "
|
||||
"Verzauberung.",
|
||||
cinfo_magicrunes
|
||||
};
|
||||
|
|
|
@ -401,7 +401,8 @@ highlight_region(region *r)
|
|||
|
||||
void
|
||||
drawmap(boolean maponly) {
|
||||
int x, x1, y1, y2, s, q;
|
||||
short x, x1, y1, y2;
|
||||
int s, q;
|
||||
chtype rs;
|
||||
region *r;
|
||||
|
||||
|
@ -592,7 +593,7 @@ mark(int x, int y, int rx, int ry) {
|
|||
refresh();
|
||||
}
|
||||
|
||||
void unmark(int x, int y, int rx, int ry) {
|
||||
static void unmark(short x, short y, short rx, short ry) {
|
||||
int q;
|
||||
region *r=findregion(rx,ry);
|
||||
chtype rs;
|
||||
|
@ -830,10 +831,11 @@ recalc_everything(int *x, int *y, int *rx, int *ry)
|
|||
|
||||
#define restore { x=oldx; y=oldy; rx=oldrx; ry=oldry; }
|
||||
|
||||
void
|
||||
movearound(int rx, int ry) {
|
||||
int hx = -1, hy = -1, ch, x, y, Rand, d, a, b, p, q, oldx=0, oldy=0;
|
||||
static void
|
||||
movearound(short rx, short ry) {
|
||||
int hx = -1, hy = -1, ch, Rand, d, a, b, p, q, oldx=0, oldy=0;
|
||||
int oldrx=0, oldry=0, Hx=0, Hy=0;
|
||||
short x, y;
|
||||
int sel;
|
||||
static int editmode=0;
|
||||
char *selc;
|
||||
|
|
|
@ -3824,6 +3824,10 @@
|
|||
<text locale="de">Segne Steinkreis</text>
|
||||
<text locale="en">Bless Stone Circle</text>
|
||||
</string>
|
||||
<string name="barkskin">
|
||||
<text locale="de">Rindenhaut</text>
|
||||
<text locale="en">Barkskin</text>
|
||||
</string>
|
||||
<string name="sparklechaos">
|
||||
<text locale="de">Verwünschung</text>
|
||||
<text locale="en">Hex</text>
|
||||
|
@ -3890,6 +3894,14 @@
|
|||
<text locale="de">Beschwöre Schattendämonen</text>
|
||||
<text locale="en">Summon Shadowdemons</text>
|
||||
</string>
|
||||
<string name="summonfireelemental">
|
||||
<text locale="de">Beschwörung eines Hitzeelementar</text>
|
||||
<text locale="en">Summon Fire Elemental</text>
|
||||
</string>
|
||||
<string name="fogofconfusion">
|
||||
<text locale="de">Nebel der Verwirrung</text>
|
||||
<text locale="en">Fog of Confusion</text>
|
||||
</string>
|
||||
<string name="undeadhero">
|
||||
<text locale="de">Untote Helden</text>
|
||||
<text locale="en">Undead Heroes</text>
|
||||
|
@ -4826,6 +4838,17 @@
|
|||
per level.
|
||||
</text>
|
||||
</string>
|
||||
<string name="barkskin">
|
||||
<text locale="de">Dieses vor dem Kampf zu zaubernde Ritual gibt den
|
||||
eigenen Truppen einen zusätzlichen Bonus auf ihre Rüstung. Jeder
|
||||
Treffer reduziert die Kraft des Zaubers, so dass der Schild sich
|
||||
irgendwann im Kampf auflösen wird.
|
||||
</text>
|
||||
<text locale="en">Performing this ritual before going into battle gives
|
||||
your troups an additional bonus to their armor. Every hit reduces the
|
||||
energy of the spell, dissolving it at some point during battle.
|
||||
</text>
|
||||
</string>
|
||||
<string name="fireball">
|
||||
<text locale="de">Der Zauberer schleudert fokussiertes
|
||||
Chaos in die Reihen der Gegner. Das ballförmige
|
||||
|
@ -5038,6 +5061,31 @@
|
|||
their victims.
|
||||
</text>
|
||||
</string>
|
||||
<string name="fogofconfusion">
|
||||
<text locale="de">Der Druide beschwört die Elementargeister des Nebels.
|
||||
Sie werden sich für einige Zeit in der Umgebung festsetzen und sie mit
|
||||
dichtem Nebel überziehen. Personen innerhalb des magischen Nebels
|
||||
verlieren die Orientierung und haben große Schwierigkeiten, sich in
|
||||
eine bestimmte Richtung zu bewegen.
|
||||
</text>
|
||||
<text locale="en">The druid summons a group of water elementals that
|
||||
cover the region in a thick fog. People inside this magical fog lose
|
||||
their orientation and have great difficulties moving in a specific
|
||||
direction.
|
||||
</text>
|
||||
</string>
|
||||
<string name="summonfireelemental">
|
||||
<text locale="de">Dieses Ritual beschwört wütende Elementargeister der
|
||||
Hitze. Eine Dürre sucht das Land heim. Bäume verdorren, Tiere
|
||||
verenden, und die Ernte fällt aus. Für Tagelöhner gibt es kaum noch
|
||||
Arbeit in der Landwirtschaft zu finden.
|
||||
</text>
|
||||
<text locale="en">This Ritual summons an angry elemental spirit that
|
||||
puts a drought on the entire region. Trees wither, animals die of
|
||||
thirst and the harvest is destroyed. Workers find little to no work
|
||||
in farming.
|
||||
</text>
|
||||
</string>
|
||||
<string name="undeadhero">
|
||||
<text locale="de">Dieses Ritual bindet die bereits
|
||||
entfliehenden Seelen einiger Kampfopfer an ihren
|
||||
|
|
|
@ -6347,4 +6347,22 @@
|
|||
<text locale="en">"$unit($unit) in $region($region): $int($amount) $resource($item,$amount) turn to dust."</text>
|
||||
</message>
|
||||
|
||||
<message name="curseinfo::magicrunes_building" section="events">
|
||||
<type>
|
||||
<arg name="building" type="building"/>
|
||||
<arg name="id" type="int"/>
|
||||
</type>
|
||||
<text locale="de">"Auf den Mauern von $building($building) erkennt man seltsame Runen. ($int36($id))"</text>
|
||||
<text locale="en">"The walls of $building($building) are inscribed with strange runes. ($int36($id))"</text>
|
||||
</message>
|
||||
|
||||
<message name="curseinfo::magicrunes_ship" section="events">
|
||||
<type>
|
||||
<arg name="ship" type="ship"/>
|
||||
<arg name="id" type="int"/>
|
||||
</type>
|
||||
<text locale="de">"Auf den Planken von $ship($ship) erkennt man seltsame Runen. ($int36($id))"</text>
|
||||
<text locale="en">"The plank of $ship($ship) are inscribed with strange runes. ($int36($id))"</text>
|
||||
</message>
|
||||
|
||||
</messages>
|
||||
|
|
Loading…
Reference in New Issue