Prev: AF1E Up: Map Next: AF39
AF31: Check Item In Current Room
Input
A Item ID
Output
F Z flag is set if the item is in the current room
Fetch the room ID of the requested item using the table at Table_ItemLocations.
CheckItemInCurrentRoom AF31 CALL ItemLocator Call ItemLocator.
AF34 LD HL,$A7C3 Compare the room ID with *CurrentRoom.
AF37 CP (HL)
AF38 RET Return.
Prev: AF1E Up: Map Next: AF39