Prev: 9E07 Up: Map Next: 9EB2
9E98: Picking lock
This locks out player controls while the lock is being picked.
Used by the routine at process_player_input.
picking_lock 9E98 LD HL,$A12F Return unless player_locked_out_until becomes equal to game_counter
9E9B LD A,($A145)
9E9E CP (HL)
9E9F RET NZ
Countdown reached: Unlock the door.
9EA0 LD HL,($A143) Clear door_LOCKED ($80) from the door whose lock is being picked
9EA3 RES 7,(HL)
9EA5 LD B,$06 Queue the message "IT IS OPEN"
9EA7 CALL queue_message
This entry point is used by the routine at cutting_wire.
clear_lockpick_wirecut_flags_and_return 9EAA LD HL,$8001 Clear the vischar_FLAGS_PICKING_LOCK and vischar_FLAGS_CUTTING_WIRE flags
9EAD LD A,(HL)
9EAE AND $FC
9EB0 LD (HL),A
9EB1 RET Return
Prev: 9E07 Up: Map Next: 9EB2