forked from github/server
- battle, smarter optimization
- messages, bugfix $strlen
This commit is contained in:
parent
0e2478bdb9
commit
e380670a34
|
@ -1274,7 +1274,7 @@ count_enemies(battle * b, const fighter * af, int minrow, int maxrow, int select
|
||||||
return b->fast.enemies[select-SELECT_FIND];
|
return b->fast.enemies[select-SELECT_FIND];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if (select!=SELECT_FIND || b->alive!=b->fast.alive) {
|
||||||
b->fast.side = as;
|
b->fast.side = as;
|
||||||
b->fast.status = sr;
|
b->fast.status = sr;
|
||||||
b->fast.minrow = minrow;
|
b->fast.minrow = minrow;
|
||||||
|
|
|
@ -6439,8 +6439,8 @@
|
||||||
<arg name="spell" type="spell"/>
|
<arg name="spell" type="spell"/>
|
||||||
<arg name="effect" type="string"/>
|
<arg name="effect" type="string"/>
|
||||||
</type>
|
</type>
|
||||||
<text locale="de">"$unit($mage) zaubert $spell($spell)$if(strlen($effect),": $effect","")."</text>
|
<text locale="de">"$unit($mage) zaubert $spell($spell)$if($strlen($effect),": $effect","")."</text>
|
||||||
<text locale="en">"$unit($mage) casts $spell($spell)$if(strlen($effect),": $effect","")."</text>
|
<text locale="en">"$unit($mage) casts $spell($spell)$if($strlen($effect),": $effect","")."</text>
|
||||||
</message>
|
</message>
|
||||||
<message name="battle::killed" section="battle">
|
<message name="battle::killed" section="battle">
|
||||||
<type>
|
<type>
|
||||||
|
|
Loading…
Reference in New Issue