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 (dh==0) {
|
||||||
if (c->type->info_str!=NULL) {
|
if (c->type->info_str!=NULL) {
|
||||||
strcpy(buf, c->type->info_str);
|
sprintf(buf, "%s (%s)", c->type->info_str, itoa36(c->no));
|
||||||
} else {
|
} else {
|
||||||
sprintf(buf, "an unknown curse lies on the region. (%s)", itoa36(c->no));
|
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)) {
|
if (fval(f, FFL_OVERRIDE)) {
|
||||||
free(f->override);
|
free(f->override);
|
||||||
f->override = strdup(itoa36(rand()));
|
f->override = strdup(itoa36(rand()));
|
||||||
|
freset(f, FFL_OVERRIDE);
|
||||||
}
|
}
|
||||||
if (turn!=f->lastorders) {
|
if (turn!=f->lastorders) {
|
||||||
char info[256];
|
char info[256];
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
#include "save.h"
|
#include "save.h"
|
||||||
#include "ship.h"
|
#include "ship.h"
|
||||||
#include "skill.h"
|
#include "skill.h"
|
||||||
#include "spell.h"
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
|
|
||||||
/* util includes */
|
/* util includes */
|
||||||
|
@ -3161,7 +3160,6 @@ void
|
||||||
attrib_init(void)
|
attrib_init(void)
|
||||||
{
|
{
|
||||||
/* Alle speicherbaren Attribute müssen hier registriert werden */
|
/* Alle speicherbaren Attribute müssen hier registriert werden */
|
||||||
at_register(&at_unitdissolve);
|
|
||||||
at_register(&at_shiptrail);
|
at_register(&at_shiptrail);
|
||||||
at_register(&at_familiar);
|
at_register(&at_familiar);
|
||||||
at_register(&at_familiarmage);
|
at_register(&at_familiarmage);
|
||||||
|
@ -3172,7 +3170,6 @@ attrib_init(void)
|
||||||
at_register(&at_mage);
|
at_register(&at_mage);
|
||||||
at_register(&at_countdown);
|
at_register(&at_countdown);
|
||||||
at_register(&at_curse);
|
at_register(&at_curse);
|
||||||
at_register(&at_cursewall);
|
|
||||||
|
|
||||||
at_register(&at_seenspell);
|
at_register(&at_seenspell);
|
||||||
at_register(&at_deathcloud);
|
at_register(&at_deathcloud);
|
||||||
|
@ -3205,9 +3202,6 @@ attrib_init(void)
|
||||||
register_bordertype(&bt_fogwall);
|
register_bordertype(&bt_fogwall);
|
||||||
register_bordertype(&bt_wall);
|
register_bordertype(&bt_wall);
|
||||||
register_bordertype(&bt_illusionwall);
|
register_bordertype(&bt_illusionwall);
|
||||||
register_bordertype(&bt_firewall);
|
|
||||||
register_bordertype(&bt_wisps);
|
|
||||||
register_bordertype(&bt_chaosgate);
|
|
||||||
register_bordertype(&bt_road);
|
register_bordertype(&bt_road);
|
||||||
register_bordertype(&bt_questportal);
|
register_bordertype(&bt_questportal);
|
||||||
|
|
||||||
|
@ -3218,9 +3212,6 @@ attrib_init(void)
|
||||||
at_register(&at_laen); /* required for old datafiles */
|
at_register(&at_laen); /* required for old datafiles */
|
||||||
#ifdef XECMD_MODULE
|
#ifdef XECMD_MODULE
|
||||||
at_register(&at_xontormiaexpress); /* required for old datafiles */
|
at_register(&at_xontormiaexpress); /* required for old datafiles */
|
||||||
#endif
|
|
||||||
#ifdef WDW_PYRAMIDSPELL
|
|
||||||
at_register(&at_wdwpyramid);
|
|
||||||
#endif
|
#endif
|
||||||
at_register(&at_speedup);
|
at_register(&at_speedup);
|
||||||
at_register(&at_nodestroy);
|
at_register(&at_nodestroy);
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
#include "race.h"
|
#include "race.h"
|
||||||
#include "region.h"
|
#include "region.h"
|
||||||
#include "render.h"
|
#include "render.h"
|
||||||
#include "spell.h"
|
|
||||||
#include "ship.h"
|
#include "ship.h"
|
||||||
#include "skill.h"
|
#include "skill.h"
|
||||||
#include "teleport.h"
|
#include "teleport.h"
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
#include "region.h"
|
#include "region.h"
|
||||||
#include "ship.h"
|
#include "ship.h"
|
||||||
#include "skill.h"
|
#include "skill.h"
|
||||||
#include "spell.h"
|
|
||||||
#include "unit.h"
|
#include "unit.h"
|
||||||
#ifdef USE_UGROUPS
|
#ifdef USE_UGROUPS
|
||||||
# include "ugroup.h"
|
# include "ugroup.h"
|
||||||
|
|
|
@ -8224,11 +8224,7 @@ static spell spelldaten[] =
|
||||||
(spell_f)sp_blessstonecircle, patzer
|
(spell_f)sp_blessstonecircle, patzer
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_GWYRRD_ARMORSHIELD, "Rindenhaut",
|
SPL_GWYRRD_ARMORSHIELD, "barkskin", NULL, NULL, NULL,
|
||||||
"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,
|
|
||||||
M_DRUIDE, (PRECOMBATSPELL | SPELLLEVEL), 2, 12,
|
M_DRUIDE, (PRECOMBATSPELL | SPELLLEVEL), 2, 12,
|
||||||
{
|
{
|
||||||
{ R_AURA, 4, SPC_LEVEL },
|
{ R_AURA, 4, SPC_LEVEL },
|
||||||
|
@ -8240,11 +8236,7 @@ static spell spelldaten[] =
|
||||||
(spell_f)sp_armorshield, patzer
|
(spell_f)sp_armorshield, patzer
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_DROUGHT, "Beschwörung eines Hitzeelementar",
|
SPL_DROUGHT, "summonfireelemental", NULL, NULL, NULL,
|
||||||
"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,
|
|
||||||
M_DRUIDE, (FARCASTING|REGIONSPELL|TESTRESISTANCE), 5, 13,
|
M_DRUIDE, (FARCASTING|REGIONSPELL|TESTRESISTANCE), 5, 13,
|
||||||
{
|
{
|
||||||
{ R_AURA, 600, SPC_FIX },
|
{ R_AURA, 600, SPC_FIX },
|
||||||
|
@ -8256,12 +8248,7 @@ static spell spelldaten[] =
|
||||||
(spell_f)sp_drought, patzer
|
(spell_f)sp_drought, patzer
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_FOG_OF_CONFUSION, "Nebel der Verwirrung",
|
SPL_FOG_OF_CONFUSION, "fogofconfusion", NULL, NULL, NULL,
|
||||||
"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,
|
|
||||||
M_DRUIDE,
|
M_DRUIDE,
|
||||||
(FARCASTING|SPELLLEVEL),
|
(FARCASTING|SPELLLEVEL),
|
||||||
5, 14,
|
5, 14,
|
||||||
|
@ -10602,6 +10589,14 @@ init_spells(void)
|
||||||
for (i=0;spelldaten[i].id!=SPL_NOSPELL;++i) {
|
for (i=0;spelldaten[i].id!=SPL_NOSPELL;++i) {
|
||||||
register_spell(spelldaten+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
|
static boolean
|
||||||
|
|
|
@ -57,30 +57,31 @@ cinfo_building(const struct locale * lang, const void * obj, typ_t typ, curse *c
|
||||||
static int
|
static int
|
||||||
cinfo_magicrunes(const struct locale* lang, const void * obj, typ_t typ, curse *c, int self)
|
cinfo_magicrunes(const struct locale* lang, const void * obj, typ_t typ, curse *c, int self)
|
||||||
{
|
{
|
||||||
|
message * msg = NULL;
|
||||||
if (typ == TYP_BUILDING){
|
if (typ == TYP_BUILDING){
|
||||||
building * b;
|
building * b;
|
||||||
b = (building*)obj;
|
b = (building*)obj;
|
||||||
if (self != 0){
|
if (self != 0) {
|
||||||
sprintf(buf, "Auf den Mauern von %s erkennt man seltsame Runen. (%s)",
|
msg = msg_message(mkname("curseinfo", "magicrunes_building"), "building id", b, c->no);
|
||||||
b->name, curseid(c));
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
} else if (typ == TYP_SHIP) {
|
} else if (typ == TYP_SHIP) {
|
||||||
ship *sh;
|
ship *sh;
|
||||||
sh = (ship*)obj;
|
sh = (ship*)obj;
|
||||||
if (self != 0){
|
if (self != 0){
|
||||||
sprintf(buf, "Auf den Planken von %s erkennt man seltsame Runen. (%s)",
|
msg = msg_message(mkname("curseinfo", "magicrunes_ship"), "ship id", sh, c->no);
|
||||||
sh->name, curseid(c));
|
}
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (msg!=NULL) {
|
||||||
|
nr_render(msg, lang, buf, sizeof(buf), NULL);
|
||||||
|
msg_release(msg);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
static struct curse_type ct_magicrunes = { "magicrunes",
|
static struct curse_type ct_magicrunes = { "magicrunes",
|
||||||
CURSETYP_NORM, 0, M_SUMEFFECT,
|
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.",
|
"Verzauberung.",
|
||||||
cinfo_magicrunes
|
cinfo_magicrunes
|
||||||
};
|
};
|
||||||
|
|
|
@ -401,7 +401,8 @@ highlight_region(region *r)
|
||||||
|
|
||||||
void
|
void
|
||||||
drawmap(boolean maponly) {
|
drawmap(boolean maponly) {
|
||||||
int x, x1, y1, y2, s, q;
|
short x, x1, y1, y2;
|
||||||
|
int s, q;
|
||||||
chtype rs;
|
chtype rs;
|
||||||
region *r;
|
region *r;
|
||||||
|
|
||||||
|
@ -592,7 +593,7 @@ mark(int x, int y, int rx, int ry) {
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
void unmark(int x, int y, int rx, int ry) {
|
static void unmark(short x, short y, short rx, short ry) {
|
||||||
int q;
|
int q;
|
||||||
region *r=findregion(rx,ry);
|
region *r=findregion(rx,ry);
|
||||||
chtype rs;
|
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; }
|
#define restore { x=oldx; y=oldy; rx=oldrx; ry=oldry; }
|
||||||
|
|
||||||
void
|
static void
|
||||||
movearound(int rx, int ry) {
|
movearound(short rx, short ry) {
|
||||||
int hx = -1, hy = -1, ch, x, y, Rand, d, a, b, p, q, oldx=0, oldy=0;
|
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;
|
int oldrx=0, oldry=0, Hx=0, Hy=0;
|
||||||
|
short x, y;
|
||||||
int sel;
|
int sel;
|
||||||
static int editmode=0;
|
static int editmode=0;
|
||||||
char *selc;
|
char *selc;
|
||||||
|
|
|
@ -3824,6 +3824,10 @@
|
||||||
<text locale="de">Segne Steinkreis</text>
|
<text locale="de">Segne Steinkreis</text>
|
||||||
<text locale="en">Bless Stone Circle</text>
|
<text locale="en">Bless Stone Circle</text>
|
||||||
</string>
|
</string>
|
||||||
|
<string name="barkskin">
|
||||||
|
<text locale="de">Rindenhaut</text>
|
||||||
|
<text locale="en">Barkskin</text>
|
||||||
|
</string>
|
||||||
<string name="sparklechaos">
|
<string name="sparklechaos">
|
||||||
<text locale="de">Verwünschung</text>
|
<text locale="de">Verwünschung</text>
|
||||||
<text locale="en">Hex</text>
|
<text locale="en">Hex</text>
|
||||||
|
@ -3890,6 +3894,14 @@
|
||||||
<text locale="de">Beschwöre Schattendämonen</text>
|
<text locale="de">Beschwöre Schattendämonen</text>
|
||||||
<text locale="en">Summon Shadowdemons</text>
|
<text locale="en">Summon Shadowdemons</text>
|
||||||
</string>
|
</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">
|
<string name="undeadhero">
|
||||||
<text locale="de">Untote Helden</text>
|
<text locale="de">Untote Helden</text>
|
||||||
<text locale="en">Undead Heroes</text>
|
<text locale="en">Undead Heroes</text>
|
||||||
|
@ -4826,6 +4838,17 @@
|
||||||
per level.
|
per level.
|
||||||
</text>
|
</text>
|
||||||
</string>
|
</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">
|
<string name="fireball">
|
||||||
<text locale="de">Der Zauberer schleudert fokussiertes
|
<text locale="de">Der Zauberer schleudert fokussiertes
|
||||||
Chaos in die Reihen der Gegner. Das ballförmige
|
Chaos in die Reihen der Gegner. Das ballförmige
|
||||||
|
@ -5038,6 +5061,31 @@
|
||||||
their victims.
|
their victims.
|
||||||
</text>
|
</text>
|
||||||
</string>
|
</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">
|
<string name="undeadhero">
|
||||||
<text locale="de">Dieses Ritual bindet die bereits
|
<text locale="de">Dieses Ritual bindet die bereits
|
||||||
entfliehenden Seelen einiger Kampfopfer an ihren
|
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>
|
<text locale="en">"$unit($unit) in $region($region): $int($amount) $resource($item,$amount) turn to dust."</text>
|
||||||
</message>
|
</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>
|
</messages>
|
||||||
|
|
Loading…
Reference in New Issue