summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-08 18:35:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-08 18:35:18 +0000
commit1b680d8b0457ad7501e39e11efb9febaf488f945 (patch)
tree5e0f28b7f54724584e7c5f742e321e03ba118e87 /crawl-ref/source/effects.cc
parent45f4a27f351d9e29cf43dfbf9bb2db4dd6270f76 (diff)
downloadcrawl-ref-1b680d8b0457ad7501e39e11efb9febaf488f945.tar.gz
crawl-ref-1b680d8b0457ad7501e39e11efb9febaf488f945.zip
Fix [1937974]: Wands of teleportation now get as many charges as e.g.
wands of healing and hasting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4138 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 820d86a627..9b08452a0d 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1746,6 +1746,7 @@ bool recharge_wand(int item_slot)
{
case WAND_INVISIBILITY:
case WAND_FIREBALL:
+ case WAND_TELEPORTATION:
case WAND_HEALING:
case WAND_HASTING:
charge_gain = 3;
@@ -1776,7 +1777,7 @@ bool recharge_wand(int item_slot)
if (wand.plus > charge_gain * 3)
wand.plus = charge_gain * 3;
}
- else
+ else
{
// This is a rod.
bool work = false;
@@ -1797,7 +1798,7 @@ bool recharge_wand(int item_slot)
work = true;
}
- if (!work)
+ if (!work)
return (false);
mprf("%s glows for a moment.", wand.name(DESC_CAP_YOUR).c_str());