diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-06 14:23:46 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-06 14:23:46 +0000 |
commit | 1395f15a3e6ee7e9b934da41b694c9beef71abda (patch) | |
tree | 688495e0100e9df57d5148faa37b0bb388e4bebd /crawl-ref/source/initfile.cc | |
parent | 3afdb100186370fc412f68727fbfad5c2eff95c6 (diff) | |
download | crawl-ref-1395f15a3e6ee7e9b934da41b694c9beef71abda.tar.gz crawl-ref-1395f15a3e6ee7e9b934da41b694c9beef71abda.zip |
* 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
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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<text_pattern,std::string>(thesplit[0], thesplit[1])); } + else BOOL_OPTION(autoinscribe_randarts); else if (key == "map_file_name") { map_file_name = field; |