Prev: EED2 Up: Map Next: EF31
EEF3: Drop: Gold Key
Used by the routine at Drop_Key.
Drop the gold key and close the golden gates.
Drop_GoldKey EEF3 LD A,$47 Call IsObjectInInventory with item 47: "A gold key.".
EEF5 CALL IsObjectInInventory
EEF8 LD A,$47 Jump to Drop_IsPlayerHoldingItem with item 47: "A gold key." if the Z flag is not set.
EEFA JP NZ,Drop_IsPlayerHoldingItem
EEFD CALL Drop_IsPlayerHoldingItem Call Drop_IsPlayerHoldingItem.
EF00 XOR A Write 00 to close the matching map exits.
EF01 LD ($E89A),A
EF04 LD ($E86B),A
EF07 LD ($E8F5),A
EF0A LD ($E924),A
EF0D LD BC,$1617 Call TransformItem to transform "The gates are open." into "The gates are closed.".
EF10 CALL TransformItem
EF13 LD BC,$191A Call TransformItem to transform "The gates are open." into "The gates are closed.".
EF16 CALL TransformItem
EF19 LD BC,$1C1D Call TransformItem to transform "The gates are open." into "The gates are closed.".
EF1C CALL TransformItem
EF1F LD BC,$1F20 Call TransformItem to transform "The gates are open." into "The gates are closed.".
EF22 CALL TransformItem
EF25 LD A,($AECD) A=*CurrentRoom.
EF28 CP $23 Return if A is not 23.
EF2A RET NZ
EF2B LD A,$24 Write 24 to open eastbound access to The Lair of the Hydra from The Hall of Infinity.
EF2D LD ($E8BA),A
EF30 RET Return.
Prev: EED2 Up: Map Next: EF31