empserver/tests/smoke
Markus Armbruster eeb62ab280 build scrap: Redo 4.2.3's fix for manufacturing military
scrap has always returned the scrapped planes' full crew, regardless
of efficiency.  build, however, charged only 10%.  If you built ten
planes with one crew each, you used up one military.  Or none, if you
abused random rounding.  If you scrapped them again, you got ten back.
Pretty pricey way to manufacture military, but wrong all the same.

4.2.3 plugged this hole by making build never round military to zero.
Ugly special case, and not documented.  Also doesn't prevent abuse of
random rounding for planes requiring more than 10 crew, but such
planes don't exist in the stock game.

Redo this fix:

1. Make scrap return crew proportional to efficiency, randomly
rounded.  Note that scrap returns only two thirds of the other
materials, rounded down.  Recycling materials isn't perfect, but
recycling aircrew is.

2. Drop the special case from build: treat military just like other
materials.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2014-02-16 11:48:34 +01:00
..
00 Remove option TREATIES 2014-02-16 11:44:14 +01:00
01 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
02 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
03 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
04 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
05 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
06 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
07 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
08 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
09 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
10 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
11 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
12 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
13 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
14 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
15 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
16 tests: Factor feed_dir out of fire-test and smoke-test 2014-01-19 10:09:16 +01:00
99 Remove option TREATIES 2014-02-16 11:44:14 +01:00
fairland.xdump Remove option TREATIES 2014-02-16 11:44:14 +01:00
final.xdump build scrap: Redo 4.2.3's fix for manufacturing military 2014-02-16 11:48:34 +01:00
journal.log build scrap: Redo 4.2.3's fix for manufacturing military 2014-02-16 11:48:34 +01:00
newcap_script Remove fairland from smoke test 2013-05-08 06:55:19 +02:00
server.log tests: Enable running_test_suite by default 2014-01-19 10:09:17 +01:00