empserver/tests/navi-march
Markus Armbruster f1042f82f1 march attack assault: Hit mines like ships do
When ships enter a sector with sea mines, any minesweepers sweep, then
hit mines, and finally all ships (including the minesweepers) hit
mines.  Sweeping in a sector (navigate sub-command 'm') works the same
without the final step.

When land units enter a sector with land mines, any engineers sweep,
and then all land units (including the engineers) hit mines.  Sweeping
in a sector (march sub-command 'm') works the same, which means
non-engineers can hit mines then.  Broken in Empire 2.

Actually broken for ships too then.  4.0.17 fixed ships, but neglected
to fix land units.

Change the land unit code to work like the ship code.  Fixes march
sub-command 'm' not to expose non-engineers to mines.  Changes march,
attack and assault with option INTERDICT_ATT enabled to expose
engineers twice.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-02-28 16:13:15 +01:00
..
01-navigate-1 navigate: Don't disclose whether unfriendly canal is navigable 2015-02-28 16:13:15 +01:00
02-march-1 march attack assault: Hit mines like ships do 2015-02-28 16:13:15 +01:00
99-POGO tests/navi-march: New; exercises navigate and march command 2015-02-01 16:53:01 +01:00
final.xdump march attack assault: Hit mines like ships do 2015-02-28 16:13:15 +01:00
journal.log march attack assault: Hit mines like ships do 2015-02-28 16:13:15 +01:00
server.log tests/navi-march: New; exercises navigate and march command 2015-02-01 16:53:01 +01:00
setup-POGO navigate: Require all ships to start in the same sector 2015-02-28 16:13:14 +01:00