Prev: C8A7 Up: Map Next: C8BE
C8AF: 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 FF if none)
GetObjectMotherID C8AF CALL FetchObjectDataPointer Call FetchObjectDataPointer to look that object up.
GetObjectMotherID_Loop C8B2 LD A,(IX+$01) Return if the moved marker is FF.
C8B5 CP $FF
C8B7 RET Z
C8B8 CALL TestObjectHasSpecialDescription Return if the object has a special description.
C8BB RET NZ
C8BC JR GetObjectMotherID_Loop The bit test returned zero, so read the next entry from GetObjectMotherID_Loop.
Prev: C8A7 Up: Map Next: C8BE