]> git.pond.sub.org Git - empserver/commit
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>
Sun, 17 Jan 2021 20:24:28 +0000 (21:24 +0100)
commit39ef156f00b4e6ce5b459a2afdb8f13d0a9d258e
tree4e4a44c2bd8e177b973957f0ab4f0a56739d8f24
parentfdd55428c354dbb84d04f2414b3398ff48302a39
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