]> git.pond.sub.org Git - empserver/commit
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>
Tue, 19 Jan 2021 07:27:34 +0000 (08:27 +0100)
commit6642878d5f9d213d38531e1760e7f58838e38149
tree63d44941792a18c655605bc7e9d031f91d31f557
parent8c15a3fe3214e09fb674517d1df1013288be76e1
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