empserver/tests
Markus Armbruster 4fd1e889c8 update/revolt: Reduce under-strength land unit damage
A land unit with mil military taking N casualties loses N * 100 / mil
points of efficiency.  A 50% inf with 20m dies when it loses more than
8m.  With 100m, it dies when it loses more than 40m.  A land unit
always dies when it loses all military.

In ordinary ground combat, they lose N * 100 / maxmil points of
efficiency, where maxmil is how many military they could load.  This
is less damage when the land unit is under-strength.  A 50% inf dies
when it loses more than 40m, regardless of how many it has.

An inefficient land unit with a sufficiently high number of military
can die before its military are all killed.  A land unit with a
sufficiently low number of military can survive loss of all its
military.  Attacking land units return to their starting position.
Defending land units stay put, and get taken over by a victorious
attacker.  Neither was possible before 4.0.0 made land unit military
loadable.

The rules for ordinary ground combat may be debatable, but it's better
to be consistent: change land unit damage in guerrilla combat to match
ordinary combat.  This reduces damage to under-strength land units.

If che lose, the sector owner profits from the reduced damage.  But if
they win, they may take over land units that got all their military
killed.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 20:09:19 +02:00
..
actofgod lost: Fix to track more than one lost sector per owner 2017-08-06 20:09:18 +02:00
bridgefall lost: Fix to track more than one lost sector per owner 2017-08-06 20:09:18 +02:00
build nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
empdump nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
fairland nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
files nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
fire nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
info tests/info: New; checks info and code agree on commands 2014-01-06 20:50:06 +01:00
navi-march nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
retreat nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
smoke lost: Fix to track more than one lost sector per owner 2017-08-06 20:09:18 +02:00
torpedo nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
update update/revolt: Reduce under-strength land unit damage 2017-08-06 20:09:19 +02:00
version nsc: Drop deprecated nat and country selector hostname 2017-08-06 20:09:17 +02:00
actofgod-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
bridgefall-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
build-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
empdump-test tests: Rewrite the previous commit's sed_i helper 2015-03-04 08:15:13 +01:00
fairland-test tests/files tests/fairland: Check stderr and exit status 2015-02-01 16:52:59 +01:00
files-test tests/files tests/fairland: Check stderr and exit status 2015-02-01 16:52:59 +01:00
fire-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
info-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
navi-march-test navigate: Require all ships to start in the same sector 2015-02-28 16:13:14 +01:00
normalize.pl tests/smoke: Run news 2017-08-06 20:09:17 +02:00
retreat-test tests/retreat: Cover trains 2015-03-02 08:20:48 +01:00
smoke-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
test-common.sh config: Split table sect-chr for legibility 2017-08-06 19:59:58 +02:00
torpedo-test tests/torpedo: New; exercises torpedo command 2015-03-02 08:20:52 +01:00
update-test tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
version-test tests/version: New; exercises config introspection commands 2017-08-06 14:03:55 +02:00