show: Extend show item to show the power value

Also update "info power" to point to "show item" instead of the
formerly hardcoded values.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-05-27 21:40:11 +02:00
parent 8e187c566f
commit 1307a3be6b
4 changed files with 43 additions and 39 deletions

View file

@ -9,22 +9,22 @@ The show command displays the detailed characteristics of items.
.s1
.EX show item
.NF
item value sell lbs packing melt item
mnem in no wh ur bk deno name
c 1 no 1 1 10 10 10 10 4 civilians
m 0 no 1 1 1 1 1 1 20 military
s 5 yes 1 1 1 10 1 1 80 shells
g 60 yes 10 1 1 10 1 1 100 guns
p 4 yes 1 1 1 10 1 1 50 petrol
i 2 yes 1 1 1 10 1 1 100 iron ore
d 20 yes 5 1 1 10 1 1 100 dust (gold)
b 280 yes 50 1 1 5 1 4 200 bars of gold
f 0 yes 1 1 1 10 1 1 2 food
o 8 yes 1 1 1 10 1 1 50 oil
l 2 yes 1 1 1 10 1 1 100 light products
h 4 yes 1 1 1 10 1 1 100 heavy products
u 1 yes 2 1 1 2 1 1 2 uncompensated workers
r 150 yes 8 1 1 10 1 1 1000 radioactive materials
item power value sell lbs packing melt item
mnem in no wh ur bk deno name
c 100 1 no 1 1 10 10 10 10 4 civilians
m 100 0 yes 1 1 1 1 1 1 20 military
s 80 5 yes 1 1 1 10 1 1 80 shells
g 400 60 yes 10 1 1 10 1 1 100 guns
p 2 4 yes 1 1 1 10 1 1 50 petrol
i 10 2 yes 1 1 1 10 1 1 100 iron ore
d 200 20 yes 5 1 1 10 1 1 100 dust (gold)
b 1000 280 yes 50 1 1 5 1 4 200 bars of gold
f 0 0 yes 1 1 1 10 1 1 2 food
o 100 8 yes 1 1 1 10 1 1 50 oil
l 100 2 yes 1 1 1 10 1 1 100 light products
h 200 4 yes 1 1 1 10 1 1 100 heavy products
u 0 1 yes 2 1 1 2 1 1 2 uncompensated workers
r 0 150 yes 8 1 1 10 1 1 1000 radioactive materials
.FI
.s1
The meaning of the headings are:
@ -32,6 +32,9 @@ The meaning of the headings are:
.L "item mnem"
A one-letter mnemonic abbreviation of the item name. Commands let you
use this to select the item.
.L power
How much 1000 units of this item contribute to power (see \*Qinfo
power\*U).
.L value
The value if the item is mortgaged.
.L sell

View file

@ -86,9 +86,8 @@ The power value of a ship or land unit is (lcm cost / 10 + hcm cost +
The power value of a plane is 20 * efficiency / 100 * (20 + nation
tech level) / 500.
.s1
The power value of commodities is civilians / 10 + military / 10 +
shells / 12.5 + guns / 2.5 + petrol / 500 + iron / 100 + dust / 5 +
bars + oil / 10 lcms / 10 + hcms / 5.
The power value of commodities is amount * type factor. \*Qshow
item\*U shows the type factor in column \*Qpower\*U.
.s1
Efficiency is in percent.
.s1