]> git.pond.sub.org Git - empserver/commit
power: Include sector materials and cost in power factor
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 6 Jun 2016 04:58:07 +0000 (06:58 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 17:59:58 +0000 (19:59 +0200)
commite8451c73436a156c92ecaf74f9cdc035d6ff1134
tree6390cc526f751987efbc1fa4f3efbbee6f524e7f
parent2ffd7b948d83868a4915ec92f28563cfd70ba135
power: Include sector materials and cost in power factor

Building sectors can make you rate *lower* on the power chart, because
the power factor treats all sectors the same, regardless of build
materials and cost.

To avoid that, replace the term

   efficiency / 10.0

by

   (power value of materials + power value of cost + 9)
   * efficiency/100.0

The value of ordinary sectors, which take no materials and cost $100,
doesn't change.  The stock game's fortress is now worth 80% more due
to its materials and higher cost.  The stock game's wilderness is
worth 10% less, because it costs nothing.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
info/power.t
src/lib/commands/powe.c
tests/smoke/journal.log
tests/update/journal.log