forked from github/server
Doppelte Angriffsmeldungen battle message only reported once per round&unit
This commit is contained in:
parent
d215d26f45
commit
532eb77c51
|
@ -2080,14 +2080,6 @@ attack(battle *b, troop ta, const att *a, int numattack)
|
|||
}
|
||||
}
|
||||
|
||||
/* Der letzte Katapultschütze setzt die
|
||||
* Ladezeit neu und generiert die Meldung. */
|
||||
if (af->catmsg>=0 && ta.index==0) {
|
||||
sprintf(buf, "%d Opfer wurde%s getötet.",
|
||||
af->catmsg, af->catmsg<=1?"":"n");
|
||||
battlerecord(b, buf);
|
||||
af->catmsg = -1;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -2131,6 +2123,14 @@ do_attack(fighter * af)
|
|||
}
|
||||
}
|
||||
}
|
||||
/* Der letzte Katapultschütze setzt die
|
||||
* Ladezeit neu und generiert die Meldung. */
|
||||
if (af->catmsg>=0) {
|
||||
struct message * m = msg_message("battle::killed", "unit dead", au, af->catmsg);
|
||||
message_all(b, m);
|
||||
msg_release(m);
|
||||
af->catmsg = -1;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -6191,6 +6191,14 @@
|
|||
<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>
|
||||
</message>
|
||||
<message name="battle::killed" section="battle">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
<arg name="dead" type="int"/>
|
||||
</type>
|
||||
<text locale="de">"$unit($unit) tötete $int($dead) Krieger."</text>
|
||||
<text locale="en">"$unit($unit) killed $int($dead) opponents."</text>
|
||||
</message>
|
||||
<message name="battle::army_report" section="battle">
|
||||
<type>
|
||||
<arg name="index" type="int"/>
|
||||
|
|
Loading…
Reference in New Issue