are cloaks not "equipped"?
Author | Topic: are cloaks not "equipped"? |
---|---|
Shock Trooper
Member # 4180
|
written Tuesday, April 20 2004 01:30
Profile
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
|
written Tuesday, April 20 2004 13:39
Profile
Homepage
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 |