diff options
author | Hurcan Solter <hsolter@gmail.com> | 2011-06-29 03:31:11 +0300 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-06-30 20:52:25 +0200 |
commit | 763509e13f2f08373fc4148c7ebc90033b974bf4 (patch) | |
tree | e0d6947119449d0558be43ecf930495265ae9b3f /crawl-ref/source/l_option.cc | |
parent | ff60c7c7d9198c86cb7875fcdc97b5ad4d0f16ea (diff) | |
download | crawl-ref-763509e13f2f08373fc4148c7ebc90033b974bf4.tar.gz crawl-ref-763509e13f2f08373fc4148c7ebc90033b974bf4.zip |
* Implementable: launcher/weapon autoswitching
Switching from melee to ranged only considered
if ranged weapon is in slot A or B and the melee
weapon is in B or A.
Switching from ranged to melee picks first melee
weapon (behaviour is as above if A or B slot contains
a melee weapon) Rationale is you don't lose much
by switching to any melee weapon with respect to ranged
one.
Added autoswitch option. Enabled by default.There was
a duplicate easy_open entry l_option.cc.
Signed-off-by: Raphael Langella <raphael.langella@gmail.com>
Diffstat (limited to 'crawl-ref/source/l_option.cc')
-rw-r--r-- | crawl-ref/source/l_option.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_option.cc b/crawl-ref/source/l_option.cc index 8fc773220d..f6c4debed3 100644 --- a/crawl-ref/source/l_option.cc +++ b/crawl-ref/source/l_option.cc @@ -35,7 +35,7 @@ static int option_hboolean(lua_State *ls, const char *name, void *data, static option_handler handlers[] = { // Boolean options come first - { "easy_open", &Options.easy_open, option_hboolean }, + { "autoswitch", &Options.autoswitch, option_hboolean }, { "colour_map", &Options.colour_map, option_hboolean }, { "clean_map", &Options.clean_map, option_hboolean }, { "show_uncursed", &Options.show_uncursed, option_hboolean }, |