stormwinds effect is a very common message, should be translated.

This commit is contained in:
Enno Rehling 2007-02-10 22:04:13 +00:00
parent 8e92559dae
commit 375125ae90
2 changed files with 26 additions and 18 deletions

View File

@ -2263,7 +2263,7 @@ sp_stormwinds(castorder *co)
double power = co->force;
spellparameter *pa = co->par;
int n, force = (int)power;
message * m = NULL;
/* melden vorbereiten */
for(f = factions; f; f = f->next ) freset(f, FL_DH);
@ -2298,12 +2298,11 @@ sp_stormwinds(castorder *co)
/* melden vorbereiten: */
for(u = r->units; u; u = u->next ) {
if(u->ship != sh ) /* nur den Schiffsbesatzungen! */
continue;
if (u->ship == sh ) {
/* nur den Schiffsbesatzungen! */
fset(u->faction, FL_DH);
}
}
}
/* melden, 1x pro Partei auf Schiff und für den Magier */
fset(mage->faction, FL_DH);
@ -2311,13 +2310,14 @@ sp_stormwinds(castorder *co)
if (fval(u->faction, FL_DH)) {
freset(u->faction, FL_DH);
if (erfolg > 0) {
sprintf(buf, "%s beschwört einen magischen Wind, der die Schiffe "
"über das Wasser treibt.",
cansee(u->faction, r, mage, 0) ? unitname(mage) : "Jemand");
addmessage(r, u->faction, buf, MSG_EVENT, ML_INFO);
if (!m) {
m = msg_message("stormwinds_effect", "unit", mage);
}
r_addmessage(r, u->faction, m);
}
}
}
if (m) msg_release(m);
return erfolg;
}

View File

@ -5317,6 +5317,14 @@
<text locale="fr">"$unit($unit) in $region($region): '$order($command)' - The unit could not be found."</text>
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The unit could not be found."</text>
</message>
<message name="stormwinds_effect" section="events">
<type>
<arg name="unit" type="unit"/>
</type>
<text locale="de">"$unit($unit) beschwört einen magischen Wind, der die Schiffe über das Wasser treibt."</text>
<text locale="en">"$unit($unit) calls up a magical storm that whips the ship over the waters."</text>
<text locale="fr">"$unit($unit) calls up a magical storm that whips the ship over the waters."</text>
</message>
<message name="error59" section="errors">
<type>
<arg name="unit" type="unit"/>