Prev: 93E3 Up: Map Next: 9428
9421: Handle Barrel
The handler for the barrel stack, which is a secret door that only the serf can use. The doorway is opened by OpenDoorway when the player is the serf (sprite IDs 21 to 30), and then the door is used (see HandlerDoorExit). For anyone else the doorway is closed by CloseDoorway and the door is just shown (see HandlerRoomItem).
Input
IX The door entity
HandlerBarrel 9421 LD A,($EA90) Fetch the sprite ID of the player from Player.
9424 SUB $21 Subtract 21 to make the serf's sprite IDs start at zero.
9426 JR HandlerSecretDoor_Check Jump to HandlerSecretDoor_Check to check for the secret door.
Prev: 93E3 Up: Map Next: 9428