]> git.pond.sub.org Git - empserver/commit
assault: Don't send spies into combat
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 24 Jul 2016 12:02:53 +0000 (14:02 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:19 +0000 (20:09 +0200)
commit6fd04eabeef7a71ddb3b6f705c68b10d50b6c010
tree066e76816bf6c4b2f63ccb5286f81eef82348eea
parent490b9392f09a25b05f128c00f37d27549b490d55
assault: Don't send spies into combat

The server doesn't let you send land units without offensive strength
into combat: ask_olist() simply doesn't offer them.  Good.

However, it needs to offer spies for assault, because assault is how
they sneak ashore.  To make it offer spies, which have no offensive
strength, attack_val() artificially sets their offensive strength to
one for assault.  Dirt effect: spies fight (and die) in assaults, even
though they can't otherwise attack.  Lame.  Has been that way since
spies were added in 4.0.0.

Make ask_olist() offer spies regardless of offensive strength when
assaulting, and drop the special case from attack_val().  They get
offered exactly as before.  However, since their offensive strength is
now zero, they won't enter actual combat (see the previous commit).

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
info/Spies.t
src/lib/subs/attsub.c
src/lib/subs/lndsub.c