empserver/tests
Markus Armbruster c8b51ec1a8 config: Define infra build cost and mobility use per 100%
Infrastructure build cost is defined by infra column dcost (struct
sctintrins member in_dcost).  It's the cost per point of efficiency.
In contrast, sector and unit build cost is defined for 100%, by
sect-chr, ship-chr, plane-chr, land-chr, nuke-chr column cost.

Switch to build cost per 100%, for flexibility and consistency:
replace struct sctintrins member in_dcost by in_cost, and selector
dcost by cost.

With cost values that aren't multiple of 100, the build cost may have
to be rounded.  Do this exactly like we round sector build cost: the
amount is limited to money * 100 / cost rounded down, but the money
charged is actual amount * money / 100 rounded randomly.

Do the same for mobility use: replace struct sctintrins member
in_mcost by in_bmobil, and selector mcost by bmobil, with similar
rounding.

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 config: Define infra build cost and mobility use per 100% 2017-08-06 20:09:19 +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: Fix guerrilla liberating old-owned sector 2017-08-06 20:09:19 +02:00
version config: Define infra build cost and mobility use per 100% 2017-08-06 20:09:19 +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