Prev: 61138 Up: Map Next: 61233
61171: Drop: Gold Key
Used by the routine at Drop_Key.
Drop the gold key and close the golden gates.
Drop_GoldKey 61171 LD A,71 Call IsObjectInInventory with item 71: "A gold key.".
61173 CALL IsObjectInInventory
61176 LD A,71 Jump to Drop_IsPlayerHoldingItem with item 71: "A gold key." if the Z flag is not set.
61178 JP NZ,Drop_IsPlayerHoldingItem
61181 CALL Drop_IsPlayerHoldingItem Call Drop_IsPlayerHoldingItem.
61184 XOR A Write 0 to close the matching map exits.
61185 LD (59546),A
61188 LD (59499),A
61191 LD (59637),A
61194 LD (59684),A
61197 LD BC,5655 Call TransformItem to transform "The gates are open." into "The gates are closed.".
61200 CALL TransformItem
61203 LD BC,6426 Call TransformItem to transform "The gates are open." into "The gates are closed.".
61206 CALL TransformItem
61209 LD BC,7197 Call TransformItem to transform "The gates are open." into "The gates are closed.".
61212 CALL TransformItem
61215 LD BC,7968 Call TransformItem to transform "The gates are open." into "The gates are closed.".
61218 CALL TransformItem
61221 LD A,(44749) A=*CurrentRoom.
61224 CP 35 Return if A is not 35.
61226 RET NZ
61227 LD A,36 Write 36 to open eastbound access to The Lair of the Hydra from The Hall of Infinity.
61229 LD (59578),A
61232 RET Return.
Prev: 61138 Up: Map Next: 61233