diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-17 07:42:11 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-17 07:42:11 +0000 |
commit | aab5319a5fa4c685f00722c69a3357c64b37ac85 (patch) | |
tree | 4b45805cf4bda87f7e41d44b774957028b63b0f6 /crawl-ref/source/initfile.cc | |
parent | 841912a64cbeb5e4d798a7df3d4c7ee881aaf5fa (diff) | |
download | crawl-ref-aab5319a5fa4c685f00722c69a3357c64b37ac85.tar.gz crawl-ref-aab5319a5fa4c685f00722c69a3357c64b37ac85.zip |
Added "rare_interesting" game option. Like ood_interesting, but for the
value retruned by mons_rarity().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5917 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 969962c757..9b437a83b3 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -685,6 +685,7 @@ void game_options::reset_options() note_all_spells = false; note_hp_percent = 5; ood_interesting = 8; + rare_interesting = 9; // [ds] Grumble grumble. auto_list = true; @@ -2126,10 +2127,8 @@ void game_options::read_option_line(const std::string &str, bool runscript) field.c_str() ); } } - else if (key == "ood_interesting") - { - ood_interesting = atoi( field.c_str() ); - } + INT_OPTION(ood_interesting, 0, 500); + INT_OPTION(rare_interesting, 0, 99); else if (key == "note_monsters") { append_vector(note_monsters, split_string(",", field)); |