forked from github/server
stormwinds effect is a very common message, should be translated.
This commit is contained in:
parent
8e92559dae
commit
375125ae90
|
@ -2263,7 +2263,7 @@ sp_stormwinds(castorder *co)
|
||||||
double power = co->force;
|
double power = co->force;
|
||||||
spellparameter *pa = co->par;
|
spellparameter *pa = co->par;
|
||||||
int n, force = (int)power;
|
int n, force = (int)power;
|
||||||
|
message * m = NULL;
|
||||||
/* melden vorbereiten */
|
/* melden vorbereiten */
|
||||||
for(f = factions; f; f = f->next ) freset(f, FL_DH);
|
for(f = factions; f; f = f->next ) freset(f, FL_DH);
|
||||||
|
|
||||||
|
@ -2298,26 +2298,26 @@ sp_stormwinds(castorder *co)
|
||||||
|
|
||||||
/* melden vorbereiten: */
|
/* melden vorbereiten: */
|
||||||
for(u = r->units; u; u = u->next ) {
|
for(u = r->units; u; u = u->next ) {
|
||||||
if(u->ship != sh ) /* nur den Schiffsbesatzungen! */
|
if (u->ship == sh ) {
|
||||||
continue;
|
/* nur den Schiffsbesatzungen! */
|
||||||
|
fset(u->faction, FL_DH);
|
||||||
fset(u->faction, FL_DH);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
/* melden, 1x pro Partei auf Schiff und für den Magier */
|
|
||||||
fset(mage->faction, FL_DH);
|
|
||||||
for(u = r->units; u; u = u->next ) {
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* melden, 1x pro Partei auf Schiff und für den Magier */
|
||||||
|
fset(mage->faction, FL_DH);
|
||||||
|
for (u = r->units; u; u = u->next ) {
|
||||||
|
if (fval(u->faction, FL_DH)) {
|
||||||
|
freset(u->faction, FL_DH);
|
||||||
|
if (erfolg > 0) {
|
||||||
|
if (!m) {
|
||||||
|
m = msg_message("stormwinds_effect", "unit", mage);
|
||||||
|
}
|
||||||
|
r_addmessage(r, u->faction, m);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (m) msg_release(m);
|
||||||
return erfolg;
|
return erfolg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5317,6 +5317,14 @@
|
||||||
<text locale="fr">"$unit($unit) in $region($region): '$order($command)' - The unit could not be found."</text>
|
<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>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The unit could not be found."</text>
|
||||||
</message>
|
</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">
|
<message name="error59" section="errors">
|
||||||
<type>
|
<type>
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
|
|
Loading…
Reference in New Issue