From 3aa8f2c3c6a065779bdb64db863fbb4fcf8102c8 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 30 Dec 2008 12:31:12 +0000 Subject: * Fix charge/enchantment description leaking information about unidentified items. * Add two new inscriptions: {fully charged} and {tried on item} * Add freshness to default sort_menus (sorting chunks by age) One question: Is it guaranteed that artefacts (of any type) will have different descriptions than ego items? If so, we should probably display the "This is an ancient artefact. It cannot be modified by any means. It may have hidden properties" text for unidentified ones. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8030 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 8569033d78..c07a8bec86 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1921,12 +1921,15 @@ bool recharge_wand(int item_slot) desc.c_str()); wand.plus = new_charges; + + if (!charged) + wand.plus2 = ZAPCOUNT_MAX_CHARGED; } else // It's a rod. { bool work = false; - if (wand.plus2 <= MAX_ROD_CHARGE * ROD_CHARGE_MULT) + if (wand.plus2 < MAX_ROD_CHARGE * ROD_CHARGE_MULT) { wand.plus2 += ROD_CHARGE_MULT; -- cgit v1.2.3-54-g00ecf