empserver/tests/update
Markus Armbruster 849af9e06c update/revolt: Change security unit bonus to fix body count
Both ordinary ground combat and guerrilla combat basically kill
combatants one by one randomly until one side is eliminated.  The odds
of each side taking a hit are computed from combat strengths.

Ordinary combat factors bonuses into the odds.  It doesn't mess with
the number of men.

Guerrilla combat does the same for the bonus due to relative
happiness.  It doesn't for land units with security capability: these
fight as if they had twice as many military.  Changes both odds and
number of men.  This inflates the body count reported to the sector
owner.  Visible in tests/update/journal.log, where rebels kill 110 out
of 70 military.  It also complicates take_casualties().  Has been that
way since security land units were added in Chainsaw 3.

To fix the body count and simplify take_casualties(), make capability
security affect only the odds, not the number of men.  Without further
adjustments, this would reduce guerrilla losses: fewer men mean fewer
combat rounds mean fewer chances for rebels to die.  To compensate,
increase the multiplier from two to four.  This should make security
units a bit tougher.  Document the bonus in "info Guerrilla".

More body count bugs remain.

Reusing ordinary combat rules and code for guerrilla combat would be
nice, but isn't feasible for me right now.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 20:09:19 +02:00
..
01-1 budget: Fix for ship, plane, land unit building abroad 2017-08-06 20:08:30 +02:00
02-2 update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
03-3 budget: Fix treasury tracking 2017-08-06 20:00:00 +02:00
04-4 update: Fix sector maintenance when stopped or broke 2017-08-06 20:08:30 +02:00
05-5 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
06-6 budget: Fix for ship, plane, land unit building abroad 2017-08-06 20:08:30 +02:00
07-7 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
99-POGO update/revolt: Change security unit bonus to fix body count 2017-08-06 20:09:19 +02:00
final.xdump update/revolt: Change security unit bonus to fix body count 2017-08-06 20:09:19 +02:00
journal.log update/revolt: Change security unit bonus to fix body count 2017-08-06 20:09:19 +02:00
server.log tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
setup-POGO tests/update: Cover guerrilla shootout 2017-08-06 20:09:19 +02:00