Prev: 9222 Up: Map Next: 9252
9244: Handle Door Locked
The handler for the locked doors (sprite IDs 08 to 0B). When the player has the key and is in range of the door, both halves of the door become exits (sprite ID 02 see HandlerDoorExit) and the player goes through it with EnterDoor. The door is otherwise shown by HandlerRoomItem.
Input
IX The door entity
HandlerDoorLocked 9244 CALL CheckDoorKey Call CheckDoorKey to see whether the player has the key.
9247 JP NC,HandlerRoomItem Jump to HandlerRoomItem if not.
924A LD A,$02 A=02 (the sprite ID of an unlocked door).
This entry point is used by the routine at HandlerCaveDoorLocked.
HandlerDoorLocked_Unlock 924C CALL SetDoorSprites Call SetDoorSprites to unlock both halves of the door.
924F JP EnterDoor Jump to EnterDoor to enter the door.
Prev: 9222 Up: Map Next: 9252