From 291972d0389cc24265975523b04072c3d81845c8 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 26 Apr 2026 22:58:26 -0400 Subject: [PATCH] wizmode wizshowuuid to view the game's NHUUID --- include/extern.h | 1 + src/cmd.c | 2 ++ src/wizcmds.c | 7 +++++++ 3 files changed, 10 insertions(+) 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)