From 1395f15a3e6ee7e9b934da41b694c9beef71abda Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 6 Aug 2008 14:23:46 +0000 Subject: * Note items bought in shops along with their price * Note donations made to Zin * Add option autoinscribe_randarts that, if true, autoinscribes artefacts of its own whenever some new properties become known, be it by using it or identifying. Also applies to shops. This is still unfinished and buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6785 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/initfile.cc') diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 91d8838aef..d160635440 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -905,6 +905,7 @@ void game_options::reset_options() note_monsters.clear(); note_messages.clear(); autoinscriptions.clear(); + autoinscribe_randarts = true; note_items.clear(); note_skill_levels.clear(); travel_stop_message.clear(); @@ -1393,8 +1394,8 @@ void game_options::read_options(InitLineInput &il, bool runscript, } continue; } - else if (inscriptcond && - (str.find(">") == str.length() - 1 || str == ">L")) + else if (inscriptcond + && (str.find(">") == str.length() - 1 || str == ">L")) { inscriptcond = false; str = str.substr(0, str.length() - 1); @@ -2427,6 +2428,7 @@ void game_options::read_option_line(const std::string &str, bool runscript) autoinscriptions.push_back( std::pair(thesplit[0], thesplit[1])); } + else BOOL_OPTION(autoinscribe_randarts); else if (key == "map_file_name") { map_file_name = field; -- cgit v1.2.3-54-g00ecf