Revise nation status command permissions
Create new command capability NONVIS. Give it to players in any state except visitors (and STAT_UNUSED, but those must not exist). This makes it possible to have commands available to anyone but visitors. Command change fails when the player is a visitor. Simply make it unavailable instead, by requiring NONVIS. Make read unavailable to visitors, because it's useless: visitors can't receive telegrams (typed_wu() fails). Make census, commodity and sinfra unavailable to visitors. Visitors don't normally have sectors. Make map and nmap unavailable to visitors. Visitors don't have sectors, so their maps are always empty. Make them unavailable to new players (between add and newcap) and players in sanctuary, too. This is consistent with all the other commands to examine the environment. It also prevents people from trying multiple unbroken countries in a blitz to find the one with the nicest vicinity. Make resource available to new players, for consistency with census and commodity. Make country, echo and financial available to anyone.
This commit is contained in:
parent
481d1dabe2
commit
f9fc80e2de
4 changed files with 15 additions and 17 deletions
|
@ -49,10 +49,6 @@ chan(void)
|
|||
if (!p)
|
||||
return RET_SYN;
|
||||
us = getnatp(player->cnum);
|
||||
if (us->nat_stat == STAT_VIS) {
|
||||
pr("Visitor countries can't change their country name or representative.\n");
|
||||
return RET_FAIL;
|
||||
}
|
||||
switch (*p) {
|
||||
case 'n':
|
||||
case 'c':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue