fairland: Tweak rural iron, fert, oil for simplicity
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 21 Aug 2020 06:31:56 +0000 (08:31 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:28 +0000 (21:24 +0100)
commit8a40b6b15c62e9cdd0cb00f94803e94e3f46f810
tree219992a44d84ab2c64a3711842498e20bbb91b35
parent5b5e2cdfa8cd326a36392c77b003a829d45dff32
fairland: Tweak rural iron, fert, oil for simplicity

The previous commit's interpolation tables reproduce the historical
linear functions faithfully.  This exact fit requires an awkward data
point in each of the tables for iron fertility and oil.  Drop them.

No double-valued data points remain.  Adjust struct resource_point
member @res to int.

This results in slightly less rural iron (33 elevations down one
point), fertility (10 elevations down one point) and oil (14
elevations down one point, 5 down two points).  Only resource values
less than 100 are affected.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c
tests/fairland/no-spike.xdump
tests/fairland/plain.xdump
tests/fairland/spike.xdump
tests/fairland/stunted.xdump