More English spell effects

This commit is contained in:
Enno Rehling 2007-03-11 21:46:04 +00:00
parent c0ec4a9a15
commit 4c463f1fc3
2 changed files with 22 additions and 9 deletions

View File

@ -4347,25 +4347,27 @@ sp_song_of_peace(castorder *co)
int cast_level = co->level; int cast_level = co->level;
double force = co->force; double force = co->force;
int duration = 2 + lovar(force/2); int duration = 2 + lovar(force/2);
message * msg[2] = { NULL, NULL };
create_curse(mage,&r->attribs, ct_find("peacezone"), force, duration, zero_effect, 0); create_curse(mage, &r->attribs, ct_find("peacezone"), force, duration, zero_effect, 0);
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) ) {
message * m = NULL;
fset(u->faction, FL_DH); fset(u->faction, FL_DH);
if (cansee(u->faction, r, mage, 0)) { if (cansee(u->faction, r, mage, 0)) {
sprintf(buf, "%s's Gesangskunst begeistert die Leute. Die " if (msg[0]==NULL) msg[0] = msg_message("song_of_peace_effect_0", "mage", mage);
"friedfertige Stimmung des Lieds überträgt sich auf alle " m = msg[0];
"Zuhörer. Einige werfen ihre Waffen weg.", unitname(mage)); } else {
}else{ if (msg[1]==NULL) msg[1] = msg_message("song_of_peace_effect_1", "");
sprintf(buf, "In der Luft liegt ein wunderschönes Lied, dessen " m = msg[1];
"friedfertiger Stimmung sich niemand entziehen kann. "
"Einige Leute werfen sogar ihre Waffen weg.");
} }
addmessage(r, u->faction, buf, MSG_EVENT, ML_INFO); r_addmessage(r, u->faction, m);
} }
} }
if (msg[0]) msg_release(msg[0]);
if (msg[1]) msg_release(msg[1]);
return cast_level; return cast_level;
} }

View File

@ -6540,6 +6540,17 @@
<text locale="de">"$unit($mage) zaubert $spell($spell): $int($dead) $if($eq($dead,1),"Krieger wurde", "Krieger wurden") getötet."</text> <text locale="de">"$unit($mage) zaubert $spell($spell): $int($dead) $if($eq($dead,1),"Krieger wurde", "Krieger wurden") getötet."</text>
<text locale="en">"$unit($mage) casts $spell($spell): $int($dead) $if($eq($dead,1),"enemy was", "enemies were") killed."</text> <text locale="en">"$unit($mage) casts $spell($spell): $int($dead) $if($eq($dead,1),"enemy was", "enemies were") killed."</text>
</message> </message>
<message name="song_of_peace_effect_1" section="magic">
<text locale="de">"In der Luft liegt ein wunderschönes Lied, dessen friedfertiger Stimmung sich niemand entziehen kann. Einige Leute werfen sogar ihre Waffen weg."</text>
<text locale="en">"A wondrous song fills the air and enchants the public. The song's peaceful melody makes several listeners drop their weapon."</text>
</message>
<message name="song_of_peace_effect_0" section="magic">
<type>
<arg name="mage" type="unit"/>
</type>
<text locale="de">"Die Gesangskunst von $unit($mage) begeistert die Leute. Die friedfertige Stimmung des Lieds überträgt sich auf alle Zuhörer. Einige werfen ihre Waffen weg."</text>
<text locale="en">"The marvelous singing of $unit($mage) enchants the public. The song's peaceful melody makes several listeners drop their weapon."</text>
</message>
<message name="summonshadow_effect" section="magic"> <message name="summonshadow_effect" section="magic">
<type> <type>
<arg name="mage" type="unit"/> <arg name="mage" type="unit"/>