]> git.pond.sub.org Git - empserver/commit
power: Drop the RES_POP factor
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 27 May 2016 14:58:04 +0000 (16:58 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 12:05:30 +0000 (14:05 +0200)
commit7d689bd6a387d8b86899708821e834b3234e534c
treec9dbc6b9bda892a388c88fe0db4032d3797e8fa5
parentc0ce2b9973736c3e6802494da76fb67fff9789fd
power: Drop the RES_POP factor

If option RES_POP is enabled, the power factor is multiplied by a
"research factor" of 1.0 + maxpop / 10000.0, where maxpop is the
maximum population of a mine sector.

Back when this code was written (Chainsaw 3), all sectors had the same
population limit, so using a mine sector was as good as any.  Since
then, it has become configurable, and the stock game has both sector
types with lower (mountains, plains) and with higher (cities)
population limits.

Space for people is worth considering for power, but multiplying total
power by a fudge factor based on the most common sector type's maximum
population is silly.  Drop it.

Adjusting each sector's value for maximum population would make more
sense, with and without RES_POP.  Perhaps later.

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