Prev: 9117 Up: Map Next: 917D
915F: A timed door, open (types $21 and $23)
As TIMED_DOOR_SHUT, but acting as an ordinary DOOR while it waits, and not toggling while IN_DOORWAY says the player is standing in a doorway.
TIMED_DOOR_OPEN 915F LD A,($5E12)
9162 AND $01
9164 JP NZ,DOOR
9167 LD A,($5E2E)
916A AND A
916B JR Z,TIMED_DOOR_OPEN_0
916D DEC A
916E LD ($5E2E),A
9171 JP DOOR
TIMED_DOOR_OPEN_0 9174 LD A,($5E2D)
9177 AND A
9178 JP NZ,DOOR
917B JR TOGGLE_TIMED_DOOR
Prev: 9117 Up: Map Next: 917D