Prev: 61171 Up: Map Next: 61266
61233: Drop: Jewelled Key
Used by the routine at Drop_Key.
Drop the jewelled key and close the jewelled gates.
Drop_JewelledKey 61233 LD A,40 Call IsObjectInInventory with item 40: "A jewelled key.".
61235 CALL IsObjectInInventory
61238 LD A,40 Jump to Drop_IsPlayerHoldingItem with item 40: "A jewelled key." if the Z flag is not set.
61240 JP NZ,Drop_IsPlayerHoldingItem
61243 CALL Drop_IsPlayerHoldingItem Call Drop_IsPlayerHoldingItem.
61246 XOR A Write 0 to close the matching map exits.
61247 LD (59488),A
61250 LD (59495),A
61253 LD BC,4113 Call TransformItem to transform "The gates are open." into "The gates are closed.".
61256 CALL TransformItem
61259 LD BC,4884 Call TransformItem to transform "The gates are open." into "The gates are closed.".
61262 CALL TransformItem
61265 RET Return.
Prev: 61171 Up: Map Next: 61266