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:
parent
8e187c566f
commit
1307a3be6b
4 changed files with 43 additions and 39 deletions
|
@ -486,12 +486,14 @@ show_item(int tlev)
|
|||
{
|
||||
struct ichrstr *ip;
|
||||
|
||||
pr("item value sell lbs packing melt item\n");
|
||||
pr("mnem in no wh ur bk deno name\n");
|
||||
pr("item power value sell lbs packing melt item\n");
|
||||
pr("mnem in no wh ur bk deno name\n");
|
||||
|
||||
for (ip = ichr; ip->i_name; ip++) {
|
||||
pr(" %c %5d %4s %3d %2d %2d %2d %2d %2d %4d %s\n",
|
||||
ip->i_mnem, ip->i_value, ip->i_sell ? "yes" : "no", ip->i_lbs,
|
||||
pr(" %c %5d %5d %4s %3d %2d %2d %2d %2d %2d %4d %s\n",
|
||||
ip->i_mnem, ip->i_power,
|
||||
ip->i_value, ip->i_sell ? "yes" : "no",
|
||||
ip->i_lbs,
|
||||
ip->i_pkg[IPKG], ip->i_pkg[NPKG], ip->i_pkg[WPKG],
|
||||
ip->i_pkg[UPKG], ip->i_pkg[BPKG],
|
||||
ip->i_melt_denom, ip->i_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue