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>
This commit is contained in:
Markus Armbruster 2016-05-27 20:08:39 +02:00
parent d48851c0ac
commit 5917841bfc
4 changed files with 34 additions and 22 deletions

View file

@ -70,9 +70,10 @@ The \*Qpower factor\*U is determined by the following equation:
power factor = ( power value of money
+ power value of sectors
+ power value of commodities in sectors
+ power value of ships, planes and land units
+ power value of commodities loaded on ships and land units)
* (20 + nation tech level) / 500
+ power value of ships, planes and land units
* (20 + their tech level) / 500
.FI
.s1
The power value of money is dollars / 100.