(dispatch, explain, status): Use player->nstat instead of
player->ncomstat for command permissions. Side effect: status() no longer notifies deities when they go broke or become solvent. (dispatch): Don't distinguish between transiently and permanently unavailable commands. Didn't really work anyway. (player): Remove unused member ncomstat.
This commit is contained in:
parent
1476e59dce
commit
976c885dfc
4 changed files with 10 additions and 15 deletions
|
@ -134,13 +134,14 @@ explain(void)
|
|||
"Args in [brackets] are optional.\n"
|
||||
"All-caps args in <angle brackets>"
|
||||
" have the following meanings:\n"
|
||||
/* FIXME incomplete */
|
||||
" <NUM> :: a number in unspecified units\n"
|
||||
" <COMM> :: a commodity such as `food', `guns', etc\n"
|
||||
" <VAR> :: a commodity such as `food', `guns', etc\n"
|
||||
" <TYPE> :: an item type such as `ship', `plane', etc\n");
|
||||
for (i = 0; (format = player_coms[i].c_form) != 0; i++) {
|
||||
if ((player_coms[i].c_permit & player->ncomstat) ==
|
||||
player_coms[i].c_permit) {
|
||||
if ((player_coms[i].c_permit & player->nstat)
|
||||
== player_coms[i].c_permit) {
|
||||
pr("%2d ", player_coms[i].c_cost);
|
||||
if ((player_coms[i].c_permit & MONEY) == MONEY)
|
||||
pr("$");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue