]> git.pond.sub.org Git - empserver/commit
fairland: Compute resources by interpolating tables
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 21 Aug 2020 05:32:36 +0000 (07:32 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:28 +0000 (21:24 +0100)
commit5b5e2cdfa8cd326a36392c77b003a829d45dff32
tree0c55d76e605647de4f674c8c3f5f59a3ce91f786
parent39ef156f00b4e6ce5b459a2afdb8f13d0a9d258e
fairland: Compute resources by interpolating tables

The functions mapping elevation to resources are piecewise linear.
Replace them by linear interpolation on data points defined in tables.
Tables are easier to tweak for deities than code.

The data points are a bit awkward because the functions they replace
are.  The next commit will tweak them to address that.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c