Update for current code.

This commit is contained in:
Markus Armbruster 2006-05-16 20:46:07 +00:00
parent 9e15c62d7d
commit fee58a3b66

View file

@ -1,5 +1,5 @@
.TH Command POWER .TH Command POWER
.NA power "Display arbitrarily measured strengths of all countries" .NA power "Display arbitrarily measured strengths of countries"
.LV Basic .LV Basic
.SY "power [num]" .SY "power [num]"
.SY "power new [num]" .SY "power new [num]"
@ -15,52 +15,54 @@ the power chart will be displayed, and the power number rating will
not be displayed. not be displayed.
.s1 .s1
If the optional \*Qnew\*U argument is given, If the optional \*Qnew\*U argument is given,
the program will take several minutes to gather information the program will generate a new power report based on up-to-date
and generate a power report based on that up-to-date information. information.
This costs 10 BTU's. This costs 10 BTUs.
.s1 .s1
If the optional \*Qnew\*U argument is not given, If the optional \*Qnew\*U argument is not given,
the program will shown you the report generated the program will show you the report generated
the last time someone asked for new data. the last time someone asked for new data.
.s1 .s1
If the optional \*Qcountry\*U argument is given, then the information If the optional \*Qcountry\*U argument is given, then the information
is only given for those particular countries. Countries are is given for those particular countries.
separated by the "/" character as in:
.EX power c Fodder/19/Mirky
Note that countries may be specified as either names or numbers.
.s1 .s1
In the power report the countries are listed In the power report the countries are listed
in order of decreasing \*Qpower factor\*U, in order of decreasing \*Qpower factor\*U.
each being represented by a line in the following format: Powerless countries are not shown unless explicitly requested with the
\*Qcountry\*U argument.
.s1 .s1
.NF The power report shows the following columns:
sects eff civ mil shell gun pet iron dust oil pln ship unit money .s1
.FI .in \w'money\0\0'u
.L sects
Each column represents a different commodity or aspect for that country. number of sectors
The columns and values used in computing the \*Qpower factor\*U are: .L eff
.NF average sector efficiency
a # of sectors .L civ
b average sector efficiency number of civilians
c # of civilians .L mil
d # of military number of military
e # of shells .L shell
f # of guns number of shells
h tons of iron ore (not displayed) .L gun
i tons of gold dust number of guns
j # of gold bars .L pet
k tons of food (not displayed) amount of petrol
l tanks of oil .L iron
g # of planes amount of iron
m # of ships .L dust
mm tons of ships (not displayed) amount of dust
r # of land units .L oil
n # of dollars amount of oil
oo units of light construction materials (not displayed) .L pln
pp units of heavy construction materials (not displayed) number of planes
qq megatons of nuclear weaponry (not displayed) .L ship
bb gold bars number of ships
.FI .L unit
number of land units
.L money
cash on hand
.in
.s1 .s1
The \*Qpower factor\*U is determined by the following equation: The \*Qpower factor\*U is determined by the following equation:
.s1 .s1
@ -80,7 +82,6 @@ power factor += ((nation money / 100) + (petrol / 500) +
power factor += ((number of sectors * (average sector effic / 100)) * 10) power factor += ((number of sectors * (average sector effic / 100)) * 10)
power factor = ((power factor) * (nation tech level / 500)) power factor = ((power factor) * (nation tech level / 500))
power factor = ((power factor) * (research factor)) power factor = ((power factor) * (research factor))
.FI .FI
.s1 .s1
The research factor is either 1, if RES_POP is not being used, or 1+(max The research factor is either 1, if RES_POP is not being used, or 1+(max