diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-29 08:46:19 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-29 08:46:19 +0000 |
commit | b7861f247d877def85b5efb072fba62fab079eb7 (patch) | |
tree | fcda5e882ad39d8817a33741603fda342406b541 /crawl-ref/source/initfile.cc | |
parent | bb8327f999b0cc01277f1433809ac31a3c2f75bc (diff) | |
download | crawl-ref-b7861f247d877def85b5efb072fba62fab079eb7.tar.gz crawl-ref-b7861f247d877def85b5efb072fba62fab079eb7.zip |
For 1923865
Add fire_quiver_best option (default false). If true, use oldtimer
behavior where quiver always contains the best-ranked missile. See
manual, options, init.txt.
Docs switch back and forth a bit between calling ( ammunition or
missiles; moved a few uses to missiles.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3935 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, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 296d30fdba..fa50bf5ab3 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -767,6 +767,7 @@ void game_options::reset_options() flush_input[ FLUSH_LUA ] = true; fire_items_start = 0; // start at slot 'a' + fire_quiver_best = false; // Clear fire_order and set up the defaults. set_fire_order("launcher, return, " @@ -1997,10 +1998,14 @@ void game_options::read_option_line(const std::string &str, bool runscript) fire_items_start = letter_to_index( field[0] ); else { - fprintf( stderr, "Bad fire item start index -- %s\n", + fprintf( stderr, "Bad fire item start index: %s\n", field.c_str() ); } } + else if (key == "fire_quiver_best") + { + fire_quiver_best = _read_bool(field, fire_quiver_best); + } else if (key == "assign_item_slot") { if (field == "forward") |