From b20abee634a8d41db05e8324657c7a0d3826a93c Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 17 Feb 2009 18:03:31 +0000 Subject: 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 --- crawl-ref/source/transfor.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/transfor.h') 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 -- cgit v1.2.3-54-g00ecf