Bug #226
closedprayer bead necklace has a weird message
0%
Description
It says: 'You don't notice that here.'
Updated by ion about 1 month ago
- Priority changed from Normal to High
Updated by ion about 1 month ago
- Priority changed from High to Low
I misread it and got a bit confused.
To be fair, there's a "// a better way to do it"
The necklace does run out of charges, so this is lower priority.
Updated by ion about 1 month ago
- Assignee changed from Hilapdatus to ion
Updated by Hilapdatus about 1 month ago
ยท Edited
It says: 'You don't notice that here.'
/domains/Forest/Ruins/obj/prayern.c
All functionality was stuffed within the object's override of CanTouch() and there is no override of LIB_TOUCH::eventTouch().
CanTouch() is expected to perform the checks to see if the touch is possible while the actually touching happens in eventTouch(). Without that override, the default LIB_TOUCH::eventTouch() was executed.
The fix was to flip things around and change the object's int CanTouch(...) to void eventTouch(...). This allows the default LIB_TOUCH::CanTouch() to be called, which simply returns 1, and have all of the object's logic called in eventTouch().
Updated by Hilapdatus about 1 month ago
- Status changed from New to Closed