Add optionsfull extended command

This is the previous, full options list. Adding it as
an extended command, so users can do

BIND=O:optionsfull

to go back to the old behaviour.
This commit is contained in:
Pasi Kallinen
2022-08-03 19:18:41 +03:00
parent adf451e421
commit bfd262ebe8
5 changed files with 16 additions and 8 deletions

View File

@@ -58,6 +58,7 @@ extern int doclose(void); /**/
extern int dosh(void); /**/
extern int dodiscovered(void); /**/
extern int doclassdisco(void); /**/
extern int doset_simple(void); /**/
extern int doset(void); /**/
extern int dotogglepickup(void); /**/
extern int dowhatis(void); /**/
@@ -2528,8 +2529,10 @@ struct ext_func_tab extcmdlist[] = {
dosacrifice, AUTOCOMPLETE | CMD_M_PREFIX, NULL },
{ 'o', "open", "open a door",
doopen, 0, NULL },
{ 'O', "options", "show option settings, possibly change them",
doset, IFBURIED | GENERALCMD | CMD_M_PREFIX, NULL },
{ 'O', "options", "show option settings",
doset_simple, IFBURIED | GENERALCMD | CMD_M_PREFIX, NULL },
{ '\0', "optionsfull", "show all option settings, possibly change them",
doset, IFBURIED | GENERALCMD, NULL },
/* #overview used to need autocomplete and has retained that even
after being assigned to ^O [old wizard mode ^O is now #wizwhere] */
{ C('o'), "overview", "show a summary of the explored dungeon",