Skip to content

Commit

Permalink
Make wizard mode always available
Browse files Browse the repository at this point in the history
  • Loading branch information
tmewett committed Jul 9, 2020
1 parent 2fdbdc5 commit 210a100
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ endif

ifeq ($(DEBUG),YES)
cflags += -g
cppflags += -DWIZARD
else
cflags += -O2
endif
Expand Down
3 changes: 3 additions & 0 deletions changes/wizard-mode.md
Original file line number Diff line number Diff line change
@@ -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
5 changes: 0 additions & 5 deletions src/brogue/Rogue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions src/platform/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 210a100

Please sign in to comment.