From 210a100eaf13dd40841a06212677abbc35bb4c22 Mon Sep 17 00:00:00 2001 From: Tom M Date: Wed, 8 Jul 2020 21:49:09 +0100 Subject: [PATCH] Make wizard mode always available --- Makefile | 1 - changes/wizard-mode.md | 3 +++ src/brogue/Rogue.h | 5 ----- src/platform/main.c | 2 -- 4 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 changes/wizard-mode.md diff --git a/Makefile b/Makefile index c807f300..5cdc795f 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,6 @@ endif ifeq ($(DEBUG),YES) cflags += -g - cppflags += -DWIZARD else cflags += -O2 endif diff --git a/changes/wizard-mode.md b/changes/wizard-mode.md new file mode 100644 index 00000000..21a9077f --- /dev/null +++ b/changes/wizard-mode.md @@ -0,0 +1,3 @@ +Debug mode, or "wizard mode," is now available by default. Start the game with +the `-W`/`--wizard` command-line option to play with teleportation, immortality +and overpowered items diff --git a/src/brogue/Rogue.h b/src/brogue/Rogue.h index a45c6ef5..77d639c7 100644 --- a/src/brogue/Rogue.h +++ b/src/brogue/Rogue.h @@ -38,11 +38,6 @@ // Cannot be longer than 16 chars #define BROGUE_RECORDING_VERSION_STRING "CE 1.8" -// debug macros -- uncomment the #define WIZARD here or set DEBUG := YES in -// config.mk to enable - -//#define WIZARD - #define DEBUG if (rogue.wizard) #define MONSTERS_ENABLED (!rogue.wizard || 1) // Quest room monsters can be generated regardless. #define ITEMS_ENABLED (!rogue.wizard || 1) diff --git a/src/platform/main.c b/src/platform/main.c index 0c5748d5..ff4480f4 100644 --- a/src/platform/main.c +++ b/src/platform/main.c @@ -203,12 +203,10 @@ int main(int argc, char *argv[]) } #endif -#ifdef WIZARD if (strcmp(argv[i], "--wizard") == 0 || strcmp(argv[i], "-W") == 0) { rogue.wizard = true; continue; } -#endif // maybe it ends with .broguesave or .broguerec, then? if (endswith(argv[i], GAME_SUFFIX)) {