diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-08 11:24:48 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-08 11:24:48 +0000 |
commit | 3413f575a6c79600ac0aa8ed57afa20fb0fc1bec (patch) | |
tree | da15b1c73704b754bc027346e9d68afd5f2eb380 /crawl-ref/source/effects.h | |
parent | b73eb90dd3dc84ea0cfc769e05fa5ca6706c5aa6 (diff) | |
download | crawl-ref-3413f575a6c79600ac0aa8ed57afa20fb0fc1bec.tar.gz crawl-ref-3413f575a6c79600ac0aa8ed57afa20fb0fc1bec.zip |
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
Diffstat (limited to 'crawl-ref/source/effects.h')
-rw-r--r-- | crawl-ref/source/effects.h | 3 |
1 files changed, 2 insertions, 1 deletions
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} |