diff --git a/include/extern.h b/include/extern.h index d17497325..0550b63b8 100644 --- a/include/extern.h +++ b/include/extern.h @@ -3889,6 +3889,7 @@ extern void wizcustom_callback(winid win, int glyphnum, char *id); extern int wiz_display_macros(void); extern int wiz_mon_diff(void); extern int wiz_objprobs(void); +extern int wiz_show_nhuuid(void); #endif extern void sanity_check(void); diff --git a/src/cmd.c b/src/cmd.c index 93edbe4b9..c1ef88b1d 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1989,6 +1989,8 @@ struct ext_func_tab extcmdlist[] = { wiz_rumor_check, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL }, { '\0', "wizseenv", "show map locations' seen vectors", wiz_show_seenv, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL }, + { '\0', "wizshownhuuid", "show NHUUID for this game", + wiz_show_nhuuid, AUTOCOMPLETE | WIZMODECMD, NULL }, { '\0', "wizsmell", "smell monster", wiz_smell, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL }, { '\0', "wiztelekinesis", "telekinesis", diff --git a/src/wizcmds.c b/src/wizcmds.c index 0bee2da86..c4c89f750 100644 --- a/src/wizcmds.c +++ b/src/wizcmds.c @@ -1777,6 +1777,13 @@ wiz_display_macros(void) return ECMD_OK; } +/* the #wizshownhuuid command */ +int +wiz_show_nhuuid(void) +{ + pline("The NHUUID for this game is { %s }.", svn.nhuuid); +} + /* the #wizmondiff command */ int wiz_mon_diff(void)