diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-24 01:23:32 -0700 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-24 01:23:32 -0700 |
commit | 2ba16f4a387e8470b0b60ec546987a86fb21d0ab (patch) | |
tree | b1784da0e9cbdb82f0a958e2aa2a2a313fface20 /crawl-ref/source/itemprop.h | |
parent | d14ce181fb2fefdf0869ef47f076ef09c10ed68a (diff) | |
download | crawl-ref-2ba16f4a387e8470b0b60ec546987a86fb21d0ab.tar.gz crawl-ref-2ba16f4a387e8470b0b60ec546987a86fb21d0ab.zip |
Do nothing if unwielding a non-weapon artefact
Fix a bug where wielding a non-weapon artefact would do nothing, but
unwielding it would could change your stats, leading to permanent stat
loss (or permanent stat gain). Now unwielding an artefact
armor/jewellery which you accidently wielded has no effect.
Diffstat (limited to 'crawl-ref/source/itemprop.h')
-rw-r--r-- | crawl-ref/source/itemprop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index b3429fcad9..6c511fc484 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -735,6 +735,7 @@ bool gives_resistance(const item_def &item); int item_mass(const item_def &item); size_type item_size(const item_def &item); equipment_type get_item_slot(object_class_type type, int sub_type); +equipment_type get_item_slot(const item_def& item); bool is_colourful_item(const item_def &item); |