]> git.pond.sub.org Git - empserver/commitdiff
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)
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>

No differences found