]> 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>
Tue, 19 Jan 2021 07:27:34 +0000 (08:27 +0100)
commit8c15a3fe3214e09fb674517d1df1013288be76e1
treeeaca52155036059a9c3661c7e9abf6ffba8259c3
parentb6b32f02bea70a96e34b8a859edc5348c4f5eff2
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