are cloaks not "equipped"?

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: are cloaks not "equipped"?
Shock Trooper
Member # 4180
Profile #0
When I call char_has_item_of_class_equip() with a class I gave a particular type of cloak, it's always returning FALSE, even when it should (to my thinking, at least) return TRUE. I know the class of my custom item is set right, because a check of has_item_of_class() behaves correctly.

So... is a cloak not considered "equipped" when it's being worn? Or do I have some insidious bug somewhere that's disguising itself as this call not working properly?

EDIT: I've coded around this by directly checking item_type_in_slot() for slot 10 (which answers the 'insidious bug' question). Still, I'd be interested in knowing if cloaks are not considered "equipped" or if the call is broken.

[ Tuesday, April 20, 2004 02:04: Message edited by: spyderbytes ]

--------------------
-spyderbytes
Posts: 200 | Registered: Wednesday, March 31 2004 08:00
Board Administrator
Member # 1
Profile Homepage #1
This call is indeed broken. It will be unbroken for the new scenario format.

--------------------
Official Board Admin
spidweb@spiderwebsoftware.com
Posts: 960 | Registered: Tuesday, September 18 2001 07:00