Prev: 51367 Up: Map Next: 51390
51375: Get Object Mother ID
Used by the routines at TestSeventhMarker and CombineCharacterRoom.
Looks the object up and follows the object that contains it until the chain ends.
Input
A Object ID
Output
A Mother object ID (or 255 if none)
GetObjectMotherID 51375 CALL FetchObjectDataPointer Call FetchObjectDataPointer to look that object up.
GetObjectMotherID_Loop 51378 LD A,(IX+1) Return if the moved marker is 255.
51381 CP 255
51383 RET Z
51384 CALL TestObjectHasSpecialDescription Return if the object has a special description.
51387 RET NZ
51388 JR GetObjectMotherID_Loop The bit test returned zero, so read the next entry from GetObjectMotherID_Loop.
Prev: 51367 Up: Map Next: 51390