(show, show_item): New `show item'. From Ron Koenderink; changes to

info files heavily hacked by me.
This commit is contained in:
Markus Armbruster 2003-12-17 19:50:20 +00:00
parent a889b6ba0e
commit 800027023a
4 changed files with 105 additions and 32 deletions

View file

@ -54,11 +54,10 @@ show(void)
extern float drnuke_const;
int rlev;
if (!
(p =
getstarg(player->argp[1],
"Describe what (plane, nuke, bridge, ship, sect, land unit, tower)? ",
buf)) || !*p)
if (!(p = getstarg(player->argp[1],
"Describe what (plane, nuke, bridge, ship, sect, land unit, tower, item)? ",
buf))
|| !*p)
return RET_SYN;
natp = getnatp(player->cnum);
@ -83,6 +82,9 @@ show(void)
case 't':
show_tower(99999);
return RET_OK;
case 'i':
show_item(99999);
return RET_OK;
case 'n':
if (opt_DRNUKE)
tlev = ((rlev / drnuke_const) > tlev ? tlev :
@ -115,10 +117,8 @@ show(void)
default:
return RET_SYN;
}
if (!
(p =
getstarg(player->argp[2],
"Build, stats, or capability data (b,s,c)? ", buf))
if (!(p = getstarg(player->argp[2],
"Build, stats, or capability data (b,s,c)? ", buf))
|| !*p)
return RET_SYN;
if (*p == 'B' || *p == 'b')