diff options
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 60547947e4..776f68adb3 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -18,6 +18,7 @@ REVISION("$Rev$"); #include "externs.h" +#include "abl-show.h" #include "beam.h" #include "cio.h" #include "cloud.h" @@ -335,6 +336,8 @@ bool wield_weapon(bool auto_wield, int slot, bool show_weff_messages, if (you.equip[EQ_WEAPON] != -1 && !unwield_item(show_weff_messages)) return (false); + const unsigned int old_talents = your_talents(false).size(); + you.equip[EQ_WEAPON] = item_slot; // Any oddness on wielding taken care of here. @@ -346,6 +349,9 @@ bool wield_weapon(bool auto_wield, int slot, bool show_weff_messages, if (show_weff_messages) wield_warning(); + if (Options.tutorial_left && your_talents(false).size() > old_talents) + learned_something_new(TUT_NEW_ABILITY_ITEM); + // Time calculations. you.time_taken /= 2; @@ -3604,12 +3610,17 @@ bool puton_item(int item_slot) hand_used = EQ_RIGHT_RING; } + const unsigned int old_talents = your_talents(false).size(); + // Actually equip the item. you.equip[hand_used] = item_slot; // And calculate the effects. jewellery_wear_effects(item); + if (Options.tutorial_left && your_talents(false).size() > old_talents) + learned_something_new(TUT_NEW_ABILITY_ITEM); + // Putting on jewellery is as fast as wielding weapons. you.time_taken /= 2; you.turn_is_over = true; |