monpolycontrol, wizdebug_*
Demote #monpolycontrol and #wizdebug_traveldisplay from commands to simple boolean options. The former has the same name, the latter is called travel_debug. Rename #wizdebug_bury to #wizbury; it shouldn't matter that it goes away when compiled without DEBUG. There are now five wizard-mode boolean options: monpolycontrol, sanity_check, and wizweight are documented in the Guidebook; menu_tab_sep and travel_debug are commented out there. Guidebook.mn has been tested; Guidebook.tex has not.
This commit is contained in:
18
src/cmd.c
18
src/cmd.c
@@ -47,7 +47,6 @@ extern const char *enc_stat[]; /* encumbrance status from botl.c */
|
||||
|
||||
#ifdef DEBUG
|
||||
extern int NDECL(wiz_debug_cmd_bury);
|
||||
extern int NDECL(wiz_debug_cmd_traveldisplay);
|
||||
#endif
|
||||
|
||||
#ifdef DUMB /* stuff commented out in extern.h, but needed here */
|
||||
@@ -154,7 +153,6 @@ STATIC_PTR int NDECL(wiz_show_seenv);
|
||||
STATIC_PTR int NDECL(wiz_show_vision);
|
||||
STATIC_PTR int NDECL(wiz_smell);
|
||||
STATIC_PTR int NDECL(wiz_intrinsic);
|
||||
STATIC_PTR int NDECL(wiz_mon_polycontrol);
|
||||
STATIC_PTR int NDECL(wiz_show_wmodes);
|
||||
STATIC_DCL void NDECL(wiz_map_levltyp);
|
||||
STATIC_DCL void NDECL(wiz_levltyp_legend);
|
||||
@@ -878,16 +876,6 @@ wiz_level_tele(VOID_ARGS)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* #monpolycontrol command - choose new form for shapechangers, polymorphees */
|
||||
STATIC_PTR int
|
||||
wiz_mon_polycontrol(VOID_ARGS)
|
||||
{
|
||||
iflags.mon_polycontrol = !iflags.mon_polycontrol;
|
||||
pline("Monster polymorph control is %s.",
|
||||
iflags.mon_polycontrol ? "on" : "off");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* #levelchange command - adjust hero's experience level */
|
||||
STATIC_PTR int
|
||||
wiz_level_change(VOID_ARGS)
|
||||
@@ -3062,8 +3050,6 @@ struct ext_func_tab extcmdlist[] = {
|
||||
{ '\0', "migratemons", "migrate N random monsters",
|
||||
wiz_migrate_mons, IFBURIED | AUTOCOMPLETE | WIZMODECMD },
|
||||
#endif
|
||||
{ '\0', "monpolycontrol", "control monster polymorphs",
|
||||
wiz_mon_polycontrol, IFBURIED | AUTOCOMPLETE | WIZMODECMD },
|
||||
{ M('m'), "monster", "use monster's special ability",
|
||||
domonability, IFBURIED | AUTOCOMPLETE },
|
||||
{ 'N', "name", "name a monster or an object",
|
||||
@@ -3166,10 +3152,8 @@ struct ext_func_tab extcmdlist[] = {
|
||||
{ 'w', "wield", "wield (put in use) a weapon", dowield },
|
||||
{ M('w'), "wipe", "wipe off your face", dowipe, AUTOCOMPLETE },
|
||||
#ifdef DEBUG
|
||||
{ '\0', "wizdebug_bury", "wizard debug: bury objs under and around you",
|
||||
{ '\0', "wizbury", "bury objs under and around you",
|
||||
wiz_debug_cmd_bury, IFBURIED | AUTOCOMPLETE | WIZMODECMD },
|
||||
{ '\0', "wizdebug_traveldisplay", "wizard debug: toggle travel display",
|
||||
wiz_debug_cmd_traveldisplay, IFBURIED | AUTOCOMPLETE | WIZMODECMD },
|
||||
#endif
|
||||
{ C('e'), "wizdetect", "reveal hidden things within a small radius",
|
||||
wiz_detect, IFBURIED | AUTOCOMPLETE | WIZMODECMD },
|
||||
|
||||
Reference in New Issue
Block a user