Prev: EC1F Up: Map Next: EC6C
EC3A: Take: Copper Key
Take the copper key and open the copper gates.
Take_CopperKey EC3A LD A,$6C Call ValidateItemPresent with item 6C: "A copper key.".
EC3C CALL ValidateItemPresent
EC3F JP NZ,Response_ItIsntHere Jump to Response_ItIsntHere if "A copper key." is not present.
EC42 LD A,$6C Call Take_IsPlayerHoldingItem with item 6C: "A copper key.".
EC44 CALL Take_IsPlayerHoldingItem
EC47 CALL TakeItem Call TakeItem.
This action changes the map:
EC4A LD A,$11 Write 11 to open southbound access to The Hall of Gold from The Gates of Karn.
EC4C LD ($E81D),A
EC4F LD A,$09 Write 09 to open northbound access to The Gates of Karn from The Hall of Gold.
EC51 LD ($E84C),A
EC54 LD BC,$0B0A Call TransformItem to transform "The gates are closed." into "The gates are open.".
EC57 CALL TransformItem
EC5A LD BC,$0E0D Call TransformItem to transform "The gates are closed." into "The gates are open.".
EC5D CALL TransformItem
EC60 LD HL,$AE76 Return if bit 3 of *Flags_RoomChange is set, which relates to taking the copper key.
EC63 BIT 3,(HL)
EC65 RET NZ
EC66 LD A,$02 Call AddToScore with 02.
EC68 CALL AddToScore
EC6B RET Return.
Prev: EC1F Up: Map Next: EC6C