]> git.pond.sub.org Git - empserver/commit
power: Use ship, plane, land unit tech instead of nation's
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 27 May 2016 18:08:39 +0000 (20:08 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 12:05:31 +0000 (14:05 +0200)
commit5917841bfcaa9e05015ab2e256fb2bd0d4bdc5f3
treed2640db39850cc2b8e498976b44791d9787167a5
parentd48851c0ac7f077e12bfd623d84416677b443f8e
power: Use ship, plane, land unit tech instead of nation's

Actual abilities of ships, planes and land units depend almost
completely on the individual unit's tech, not the nation's tech.  The
power factor should reflect that.

The power value of a unit is of the form

    base value * (20 + nation's tech level) / 500

Change it to

    base value * (20 + unit's tech level) / 500

Note that a plane's base value still depends on the nation's tech
level.  This commit merely makes the absurdity stand out a bit more.
To be fixed later.

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