From 3413f575a6c79600ac0aa8ed57afa20fb0fc1bec Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 8 Dec 2007 11:24:48 +0000 Subject: Add "item generations stats" (Ctrl-I) wizard command, which currently only generates stats on items attained via acquirement. Move the acquirement logic of turning non-wearable headgear to wearable headgear from acquirement() to find_acquirement_subtype() so that it will happen before acquirement()'s can_wear_armour() check. The old way of doing it meant that players who couldn't wear helmets/helms had the armour acquirement chance for headgear reduced from the noraml 10% to around 1%. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3022 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/effects.h') diff --git a/crawl-ref/source/effects.h b/crawl-ref/source/effects.h index 1472fb4b56..0cdf176ad1 100644 --- a/crawl-ref/source/effects.h +++ b/crawl-ref/source/effects.h @@ -64,7 +64,8 @@ void random_uselessness(unsigned char ru, unsigned char sc_read_2); /* *********************************************************************** * called from: acr - decks - item_use - religion * *********************************************************************** */ -bool acquirement(object_class_type force_class, int agent); +bool acquirement(object_class_type force_class, int agent, + bool quiet = false, int *item_index = NULL); // last updated 12may2000 {dlb} -- cgit v1.2.3-54-g00ecf