summonundead spell will once again tell you where they got summoned

This commit is contained in:
Enno Rehling 2007-09-15 13:08:16 +00:00
parent 05f56041c4
commit f1e82cc6ff
4 changed files with 13 additions and 10 deletions

View file

@ -42,6 +42,7 @@
#define SAVEXMLNAME_VERSION 316
#define SAVEALLIANCE_VERSION 317
#define CLAIM_VERSION 318
/* 319 is the HSE4 data version */
#define BACTION_VERSION 319 /* building action gets a param string */
#define NOLASTORDER_VERSION 320 /* do not use lastorder */
#define SPELLNAME_VERSION 321 /* reference spells by name */

View file

@ -1603,9 +1603,9 @@ sp_undeadhero(fighter * fi, int level, double power, spell * sp)
level = min(level, undead);
if (undead == 0) {
msg = msg_message("summonundead_effect_0", "mage", mage);
msg = msg_message("summonundead_effect_0", "mage region", mage, mage->region);
} else {
msg = msg_message("summonundead_effect_1", "mage", mage);
msg = msg_message("summonundead_effect_1", "mage region amount", mage, mage->region, undead);
}
message_all(b, msg);

View file

@ -3631,8 +3631,8 @@ sp_summonundead(castorder *co)
u = create_unit(r, mage->faction, undead, race, 0, NULL, mage);
make_undead_unit(u);
ADDMSG(&mage->faction->msgs, msg_message("summonundead_effect_1", "mage amount", mage, undead));
ADDMSG(&r->msgs, msg_message("summonundead_effect_2", "mage", mage));
ADDMSG(&mage->faction->msgs, msg_message("summonundead_effect_1", "mage region amount", mage, r, undead));
ADDMSG(&r->msgs, msg_message("summonundead_effect_2", "mage region", mage, r));
return cast_level;
}

View file

@ -1446,26 +1446,28 @@
<message name="summonundead_effect_0" section="magic">
<type>
<arg name="mage" type="unit"/>
<arg name="region" type="region"/>
</type>
<text locale="de">"$unit($mage) kann keine Unjtoten rufen."</text>
<text locale="en">"$unit($mage) cannot summon any undead."</text>
<text locale="de">"$unit($mage) kann in $region($region) keine Untoten rufen."</text>
<text locale="en">"$unit($mage) cannot summon any undead in $region($region)."</text>
</message>
<message name="summonundead_effect_1" section="magic">
<type>
<arg name="mage" type="unit"/>
<arg name="region" type="region"/>
<arg name="amount" type="int"/>
</type>
<text locale="de">"$unit($mage) erweckt $int($amount) Untote aus ihren Gräbern."</text>
<text locale="en">"$unit($mage) calls $int($amount) undead from their graves."</text>
<text locale="de">"$unit($mage) erweckt in $region($region) $int($amount) Untote aus ihren Gräbern."</text>
<text locale="en">"$unit($mage) calls $int($amount) undead from their graves in $region($region)."</text>
</message>
<message name="summonundead_effect_2" section="magic">
<type>
<arg name="mage" type="unit"/>
</type>
<text locale="de">"$unit($mage) stört die Ruhe der Toten."</text>
<text locale="en">"$unit($mage) communicates with the dead."</text>
<text locale="de">"$unit($mage) stört in $region($region) die Ruhe der Toten."</text>
<text locale="en">"$unit($mage) communicates with the dead in $region($region)."</text>
</message>
<message name="viewreality_effect" section="magic">