fairland: Tweak sea oil & mountain gold for simplicity
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 21 Aug 2020 06:18:49 +0000 (08:18 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2021 07:27:34 +0000 (08:27 +0100)
commitb6b32f02bea70a96e34b8a859edc5348c4f5eff2
tree48a346689c0f30e97300971b373b16b92f9d9e42
parent6880908937a3c8e6dd40de3c570785150be33dee
fairland: Tweak sea oil & mountain gold for simplicity

The functions mapping elevation to resources are piecewise linear,
except for set_oil(), which randomly adds 1 to sea oil, and
set_gold(), which is isn't linear for mountains, but very close.

Drop the random oil bit, and replace the non-liner gold function by a
linear one.  Both resources decrease at most by one point.

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