empserver/include
Markus Armbruster 9f851c9f03 assault: Make spies "sneaking ashore" use mobility and hit mines
Assaulting a foreign sector with nothing but spies is special: the
spies sneak ashore.  It is, however, more special than it should be:
the spies use no mobility and ignore landmines.  They do use mobility
and hit landmines in other assaults.  Assaulting your own sector with
nothing but spies is more costly and more risky than assaulting a
foreign one.  This makes no sense.  Has been that way since spies were
added in 4.0.0.

It's that way because sneaking ashore uses its own code to move the
spies instead of move_in_land() via att_move_in_off().  It can't use
move_in_land(), because that prints an unwanted "now occupies"
message, and destroys the list of assaulting units, which we still
need to catch and shoot spies.

Factor the code to move attacking land units to the target sector out
of move_in_land() into att_move_land(), and use that for sneaking
ashore.  This makes the spies use mobility and hit landmines even when
they sneak.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 20:09:18 +02:00
..
actofgod.h Update copyright notice 2017-07-02 17:45:44 +02:00
chance.h Fix PRNG seeding to resist guessing 2013-05-08 06:55:21 +02:00
com.h Update copyright notice 2017-07-02 17:45:44 +02:00
combat.h assault: Make spies "sneaking ashore" use mobility and hit mines 2017-08-06 20:09:18 +02:00
commands.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
commodity.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
damage.h Update copyright notice 2017-07-02 17:45:44 +02:00
econfig-spec.h Update copyright notice 2017-07-02 17:45:44 +02:00
empio.h Update copyright notice 2017-07-02 17:45:44 +02:00
empobj.h empobj: Drop unused get_empobj_mob_max() 2017-08-06 19:59:59 +02:00
empthread.h Update copyright notice 2017-07-02 17:45:44 +02:00
file.h config: Add sect-chr flags, replace cost by flag "deity" 2017-08-06 19:59:58 +02:00
game.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
ioqueue.h Update copyright notice 2017-07-02 17:45:44 +02:00
item.h collect: Derive collection value from power value 2017-08-06 19:59:59 +02:00
journal.h Update copyright notice 2017-07-02 17:45:44 +02:00
land.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
loan.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
lost.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
lwp.h Update copyright notice 2017-07-02 17:45:44 +02:00
map.h Update copyright notice 2017-07-02 17:45:44 +02:00
match.h Update copyright notice 2017-07-02 17:45:44 +02:00
misc.h Update copyright notice 2017-07-02 17:45:44 +02:00
mission.h Update copyright notice 2017-07-02 17:45:44 +02:00
nat.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
news.h news: Raise the limit for "number of times" from 127 to 65535 2017-08-06 20:09:17 +02:00
nsc.h config: Add sect-chr flags, replace cost by flag "deity" 2017-08-06 19:59:58 +02:00
nuke.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
optlist.h Update copyright notice 2017-07-02 17:45:44 +02:00
path.h Update copyright notice 2017-07-02 17:45:44 +02:00
plague.h Update copyright notice 2017-07-02 17:45:44 +02:00
plane.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
player.h Update copyright notice 2017-07-02 17:45:44 +02:00
power.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
product.h Update copyright notice 2017-07-02 17:45:44 +02:00
proto.h Update copyright notice 2017-07-02 17:45:44 +02:00
prototypes.h update budget produce: Count loaded civilians for TECH_POP 2017-08-06 20:08:30 +02:00
queue.h Update copyright notice 2017-07-02 17:45:44 +02:00
retreat.h Update copyright notice 2017-07-02 17:45:44 +02:00
sect.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
server.h update server: Move update_running from server/ to update/ 2017-08-06 20:08:30 +02:00
service.h Update copyright notice 2017-07-02 17:45:44 +02:00
ship.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
tel.h Update copyright notice 2017-07-02 17:45:44 +02:00
testing.h Update copyright notice 2017-07-02 17:45:44 +02:00
trade.h Include "file.h" where it's needed 2017-08-06 20:08:31 +02:00
types.h include: Bury dead remnants of TREATIES and SAIL 2017-08-06 19:59:59 +02:00
unit.h Update copyright notice 2017-07-02 17:45:44 +02:00
update.h update: Reorder feeding, tax & plague for consistency 2017-08-06 20:09:16 +02:00
version.h Update copyright notice 2017-07-02 17:45:44 +02:00
xdump.h ef_verify: Fix test for undumpable tables 2017-08-06 20:09:17 +02:00
xy.h Update copyright notice 2017-07-02 17:45:44 +02:00