summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 22:01:50 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 22:01:50 +0000
commit7879cb06150dfe95cc3a6f690f0258936d42ff54 (patch)
treefe446c759c97316e0375dde3d21cfa3548e42194 /crawl-ref/source/item_use.cc
parent016c2763cbd5cd0345ad54fed25bbef71c2fcf38 (diff)
downloadcrawl-ref-7879cb06150dfe95cc3a6f690f0258936d42ff54.tar.gz
crawl-ref-7879cb06150dfe95cc3a6f690f0258936d42ff54.zip
[2059553]: recharged wands have their zap counts reinitialized.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6948 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 80e630bc2d..ac9f0c6e25 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3546,6 +3546,9 @@ void zap_wand( int slot )
// Take off a charge.
wand.plus--;
+ // Zap counts count from the last recharge.
+ if (wand.plus2 == ZAPCOUNT_RECHARGED)
+ wand.plus2 = 0;
// Increment zap count.
if (wand.plus2 >= 0)
wand.plus2++;