Prev: AA5C Up: Map Next: AA91
AA74: Timer 9: the hole vanishes again
Unless the door has been opened (flag bit 5), the timer is started again and the door hidden, so the hole comes and goes every five turns until somebody opens it.
SIDE_DOOR_VANISHES AA74 LD HL,MOUNTAINS_SIDE_DOOR_FLAGS Opened? Then it stays
AA77 BIT 5,(HL)
AA79 RET NZ
AA7A LD A,(TIMER9) Start the timer again
AA7D LD (TIMER9_COUNT),A
AA80 LD HL,MOUNTAINS_SIDE_DOOR_FLAGS Hidden
AA83 RES 7,(HL)
AA85 LD A,(PLAYER_WHERE) At location 42? "the hole vanishes."
AA88 CP $2A
AA8A RET NZ
This entry point is used by the routine at SIDE_DOOR_CLOSED.
SAY_HOLE_VANISHES AA8B LD HL,MSG_THE_HOLE_VANISH
AA8E JP RUN_MESSAGE_HL }
Prev: AA5C Up: Map Next: AA91