Prev: 60447 Up: Map Next: 60524
60474: Take: Copper Key
Take the copper key and open the copper gates.
Take_CopperKey 60474 LD A,108 Call ValidateItemPresent with item 108: "A copper key.".
60476 CALL ValidateItemPresent
60479 JP NZ,Response_ItIsntHere Jump to Response_ItIsntHere if "A copper key." is not present.
60482 LD A,108 Call Take_IsPlayerHoldingItem with item 108: "A copper key.".
60484 CALL Take_IsPlayerHoldingItem
60487 CALL TakeItem Call TakeItem.
This action changes the map:
60490 LD A,17 Write 17 to open southbound access to The Hall of Gold from The Gates of Karn.
60492 LD (59421),A
60495 LD A,9 Write 9 to open northbound access to The Gates of Karn from The Hall of Gold.
60497 LD (59468),A
60500 LD BC,2826 Call TransformItem to transform "The gates are closed." into "The gates are open.".
60503 CALL TransformItem
60506 LD BC,3597 Call TransformItem to transform "The gates are closed." into "The gates are open.".
60509 CALL TransformItem
60512 LD HL,44662 Return if bit 3 of *Flags_RoomChange is set, which relates to taking the copper key.
60515 BIT 3,(HL)
60517 RET NZ
60518 LD A,2 Call AddToScore with 2.
60520 CALL AddToScore
60523 RET Return.
Prev: 60447 Up: Map Next: 60524