diff options
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index bea7f1e501..aa09db7636 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1222,6 +1222,7 @@ static bool cmd_is_repeatable(command_type cmd, bool is_again = false) case CMD_INSCRIBE_ITEM: case CMD_TOGGLE_AUTOPRAYER: case CMD_MAKE_NOTE: + case CMD_CYCLE_QUIVER_FORWARD: mpr("You can't repeat that command."); return false; @@ -2257,6 +2258,18 @@ void process_command( command_type cmd ) macro_add_query(); break; + case CMD_CYCLE_QUIVER_FORWARD: + { + const int cur = you.quiver[get_quiver_type()]; + if (cur != ENDOFPACK) + { + const int next = get_fire_item_index((cur+1) % ENDOFPACK, true, false); + you.quiver[get_quiver_type()] = next; + you.quiver_change = true; + } + break; + } + case CMD_LIST_WEAPONS: list_weapons(); break; @@ -3302,8 +3315,8 @@ command_type keycode_to_command( keycode_type key ) case '{': return CMD_INSCRIBE_ITEM; case '[': return CMD_LIST_ARMOUR; case ']': return CMD_LIST_EQUIPMENT; + case '(': return CMD_CYCLE_QUIVER_FORWARD; case ')': return CMD_LIST_WEAPONS; - case '(': return CMD_LIST_WEAPONS; case '\\': return CMD_DISPLAY_KNOWN_OBJECTS; case '\'': return CMD_WEAPON_SWAP; case '`': return CMD_PREV_CMD_AGAIN; |