From 1b680d8b0457ad7501e39e11efb9febaf488f945 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 8 Apr 2008 18:35:18 +0000 Subject: 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 --- crawl-ref/source/effects.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/effects.cc') 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()); -- cgit v1.2.3-54-g00ecf