Project

General

Profile

Actions

Bug #226

closed

prayer bead necklace has a weird message

Bug #226: prayer bead necklace has a weird message

Added by MUD 11 days ago. Updated 11 days ago.

Status:
Closed
Priority:
Low
Assignee:
Start date:
01/11/2026
Due date:
% Done:

0%

Estimated time:
reported_by:
Ion

Description

It says: 'You don't notice that here.'

Updated by ion 11 days ago Actions #1

  • Priority changed from Normal to High

Updated by ion 11 days ago Actions #3

  • 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 11 days ago Actions #4

  • Assignee changed from Hilapdatus to ion

Updated by Hilapdatus 11 days ago ยท Edited Actions #6

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 11 days ago Actions #7

  • Status changed from New to Closed
Actions

Also available in: PDF Atom