From: <gi...@cr...> - 2025-07-20 21:50:26
|
via 345f232843c595c3db5d095245def53149ab243e (commit) from e651354df72fb8b8eaa7a33573c72fa5609f3e87 (commit) ----------------------------------------------------------------------- commit 345f232843c595c3db5d095245def53149ab243e Author: DracoOmega <dra...@gm...> Date: Sun Jul 20 19:18:06 2025 -0230 Fix consumable_shortcut not working properly for evokers (PaperRat) And potentially overwriting wand mappings in rare cases, even! ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/initfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 01ddf0d76e..f1ff2cb914 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -3114,7 +3114,7 @@ void game_options::update_consumable_shortcuts() else if (kind.base_type == OBJ_WANDS) evokable_shortcuts[kind.sub_type] = entry.second; else if (kind.base_type == OBJ_MISCELLANY) - evokable_shortcuts[kind.sub_type] = entry.second + NUM_WANDS; + evokable_shortcuts[kind.sub_type + NUM_WANDS] = entry.second; } } -- Dungeon Crawl Stone Soup |