From fca2ba3fa41951c7337c13a7a147bcbe5ba8f671 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 29 Dec 2008 18:37:38 +0000 Subject: * Nerf Dwarfs' Evocations aptitude 45 -> 67 (as e.g. Grey Elf). * Correct Evoc aptitude listed in aptitudes.txt for High Elf. * List max charges for wands in their descriptions. * Mention waypoint number when creating waypoints. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8020 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 25a95d3f45..11892384bf 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -1878,8 +1878,23 @@ std::string get_item_description( const item_def &item, bool verbose, break; case OBJ_WANDS: - if (item_ident( item, ISFLAG_KNOW_PLUSES ) && item.plus == 0) - description << "Unfortunately, it has no charges left."; + if (item_type_known(item)) + { + const int max_charges = 3 * wand_charge_value(item.sub_type); + if (item.plus < max_charges) + { + description << "$It can have at most " << max_charges + << " charges."; + } + else + description << "$It is fully charged."; + } + + if (item_ident( item, ISFLAG_KNOW_PLUSES ) && item.plus == 0 + || item.plus2 == ZAPCOUNT_EMPTY) + { + description << "$Unfortunately, it has no charges left."; + } description << "$"; break; -- cgit v1.2.3-54-g00ecf