summon undead gets an english message.

This commit is contained in:
Enno Rehling 2007-02-11 22:23:12 +00:00
parent 897528f1c1
commit eff560b9d7
2 changed files with 12 additions and 4 deletions

View File

@ -3643,6 +3643,7 @@ sp_summonundead(castorder *co)
int cast_level = co->level; int cast_level = co->level;
int force = (int)(co->force*10); int force = (int)(co->force*10);
const race * race = new_race[RC_SKELETON]; const race * race = new_race[RC_SKELETON];
message * m;
if (!r->land || deathcount(r) == 0) { if (!r->land || deathcount(r) == 0) {
sprintf(buf, "%s in %s: In %s sind keine Gräber.", unitname(mage), sprintf(buf, "%s in %s: In %s sind keine Gräber.", unitname(mage),
@ -3671,14 +3672,14 @@ sp_summonundead(castorder *co)
/* melden, 1x pro Partei */ /* melden, 1x pro Partei */
for (u = r->units; u; u = u->next) freset(u->faction, FL_DH); for (u = r->units; u; u = u->next) freset(u->faction, FL_DH);
for(u = r->units; u; u = u->next ) { for (u = r->units; u; u = u->next ) {
if (!fval(u->faction, FL_DH) ) { if (!fval(u->faction, FL_DH) ) {
if (!m) m = msg_message("summonundead_effect", "unit", mage);
fset(u->faction, FL_DH); fset(u->faction, FL_DH);
sprintf(buf, "%s stört die Ruhe der Toten", ADDMSG(&u->faction->msgs, m);
cansee(u->faction, r, mage, 0) ? unitname(mage) : "Jemand");
addmessage(r, u->faction, buf, MSG_EVENT, ML_INFO);
} }
} }
if (m) msg_release(m);
return cast_level; return cast_level;
} }

View File

@ -1594,6 +1594,13 @@
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - $unit($unit) gelingt es zwar die Region zu verzaubern, aber irgendwas ging schief."</text> <text locale="de">"$unit($unit) in $region($region): '$order($command)' - $unit($unit) gelingt es zwar die Region zu verzaubern, aber irgendwas ging schief."</text>
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - $unit($unit) manages to put a spell on the region, but something went wrong nonetheless."</text> <text locale="en">"$unit($unit) in $region($region): '$order($command)' - $unit($unit) manages to put a spell on the region, but something went wrong nonetheless."</text>
</message> </message>
<message name="summonundead_effect" section="magic">
<type>
<arg name="unit" type="unit"/>
</type>
<text locale="de">"$unit($unit) stört die Ruhe der Toten."</text>
<text locale="en">"$unit($unit) communicates with the dead."</text>
</message>
<message name="regionmagic_effect" section="magic"> <message name="regionmagic_effect" section="magic">
<type> <type>
<arg name="unit" type="unit"/> <arg name="unit" type="unit"/>