diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 18:03:31 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 18:03:31 +0000 |
commit | b20abee634a8d41db05e8324657c7a0d3826a93c (patch) | |
tree | 6a1992bedffd238d7d25c9e4156cd659af119005 /crawl-ref/source/transfor.h | |
parent | bb38cc0d86a56c22b7f1070fe58089254c901d1c (diff) | |
download | crawl-ref-b20abee634a8d41db05e8324657c7a0d3826a93c.tar.gz crawl-ref-b20abee634a8d41db05e8324657c7a0d3826a93c.zip |
Clean up transformation code. There are still at least four (!) different
functions which check if you can or can't wear something...that should
be cleaned up.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9115 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.h')
-rw-r--r-- | crawl-ref/source/transfor.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/transfor.h b/crawl-ref/source/transfor.h index 3588ba4e39..733e8e70fd 100644 --- a/crawl-ref/source/transfor.h +++ b/crawl-ref/source/transfor.h @@ -42,9 +42,14 @@ size_type transform_size(int psize = PSIZE_BODY); bool transform(int pow, transformation_type which_trans, bool quiet = false); -bool remove_one_equip(equipment_type eq, bool meld = true); -bool unmeld_one_equip(equipment_type eq); +void remove_one_equip(equipment_type eq, bool meld = true); +void unmeld_one_equip(equipment_type eq); bool transform_changed_physiology( bool phys_scales = false ); +bool transform_allows_wearing_item(const item_def& item, + transformation_type transform); +// Check your current transform +bool transform_allows_wearing_item(const item_def& item); +bool transform_allows_wielding(transformation_type transform); #endif |