From 014ab7e33a12d7ac74988514e88c6542005f57c8 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 14 Jun 2008 10:15:25 +0000 Subject: Fix bug where dumping the character to file would turn off note taking for the rest of the game session. Make a note if the user starts the game in wizard mode, when wizard mode is entered, and when death is escaped via wizard mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5812 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index d108bbaf07..7f640c8d34 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -392,6 +392,17 @@ static void _take_starting_note() notestr.str(""); notestr.clear(); +#ifdef WIZARD + if (you.wizard) + { + notestr << "You started the game in wizard mode."; + take_note(Note(NOTE_MESSAGE, 0, 0, notestr.str().c_str())); + + notestr.str(""); + notestr.clear(); + } +#endif + notestr << "HP: " << you.hp << "/" << you.hp_max << " MP: " << you.magic_points << "/" << you.max_magic_points; @@ -449,6 +460,8 @@ static void _handle_wizard_command( void ) if (!yesno( "Do you really want to enter wizard mode?", false, 'n' )) return; + take_note(Note(NOTE_MESSAGE, 0, 0, "Entered wizard mode.")); + you.wizard = true; redraw_screen(); -- cgit v1.2.3-54-g00ecf