summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 902565deed..fce561faac 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -4004,20 +4004,25 @@ static bool scroll_modify_item(const scroll_type scroll)
case SCR_RECHARGING:
if (item_is_rechargable(item))
{
- // might still fail on highly enchanted weapons of electrocution
+ // Might still fail on highly enchanted weapons of electrocution.
+ // (If so, already prints the "Nothing happens" message.)
if (recharge_wand(item_slot))
return (true);
return (false);
}
+ break;
case SCR_ENCHANT_ARMOUR:
if (is_enchantable_armour(item, true))
{
- // might still fail because of already high enchantment
+ // Might still fail because of already high enchantment.
+ // (If so, already prints the "Nothing happens" message.)
if (_handle_enchant_armour(item_slot))
return (true);
return (false);
}
+ break;
default:
+ mpr("Buggy scroll can't modify item!");
break;
}