empserver/tests/retreat
Markus Armbruster f5514cb452 edit: Fix fortification limit of embarked planes and land units
We generally preserve the invariant "land units and missiles loaded on
a land unit or ship are never fortified / hardened": fortify and
harden refuse to touch embarked land units and missiles, load and
lload zap land unit fortification on load, and refuse to load hardened
missiles.

The exception is edit, which happily fortifies embarked land units
(edit u key 'F'), hardens embarked missiles (edit p key 'F'), loads
fortified land units (edit u keys 'S' and 'Y') and hardened planes
(edit p keys 's' and 'y').

Fix the first two by correcting the new value's upper limit to zero
for embarked land units and planes.  The next commit will take care of
the rest.

The fix is visible in tests where test setup fortifies land units with
"edit u * F ?..." without excepting embarked ones.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-01-05 10:38:57 +01:00
..
01-retreat-1 retreat: Fix group retreat after failed board sinks ship 2015-03-02 08:20:51 +01:00
99-POGO tests: Wean off deprecated retreat syntax 2015-03-02 08:20:49 +01:00
final.xdump edit: Fix fortification limit of embarked planes and land units 2021-01-05 10:38:57 +01:00
journal.log edit: Fix fortification limit of embarked planes and land units 2021-01-05 10:38:57 +01:00
server.log Revert "retreat: Oops on retreating ghosts" 2015-03-02 08:20:51 +01:00
setup-2 tests/retreat: Cover ships and land units on sale 2015-03-02 08:20:48 +01:00
setup-POGO tests/retreat: Cover retreat after failed board sinks victim 2015-03-02 08:20:50 +01:00