diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-22 13:42:49 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-22 13:42:49 +0000 |
commit | b794d555277836316ec842421c5287ff50641ff9 (patch) | |
tree | 71af9d043989c3a41d1619da84077eb35bc74b5d /crawl-ref/source/initfile.cc | |
parent | dfebce7241da1ef5b2506cb175b9abf5eb32e533 (diff) | |
download | crawl-ref-b794d555277836316ec842421c5287ff50641ff9.tar.gz crawl-ref-b794d555277836316ec842421c5287ff50641ff9.zip |
Added option 'autopickup_no_burden' which, if set, will prevent autopickup
from picking up items beyond the burden limit. (Partial pickup will take
place if you can take some of the items for a stack, e.g., 3 of the 5
potions of healing.) Defaults to false.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@692 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 6705e3a084..9e761cbb7c 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -573,6 +573,7 @@ void game_options::reset_options() hp_warning = 10; confirm_self_target = true; safe_autopickup = true; + autopickup_no_burden = false; use_notes = true; note_skill_max = false; note_all_spells = false; @@ -1688,6 +1689,10 @@ void game_options::read_option_line(const std::string &str, bool runscript) { safe_autopickup = read_bool( field, safe_autopickup ); } + else if (key == "autopickup_no_burden") + { + autopickup_no_burden = read_bool( field, autopickup_no_burden ); + } else if (key == "use_notes") { use_notes = read_bool( field, use_notes ); |