Prev: EF68 Up: Map Next: EFAD
EF7E: Take: Log
Used by the routine at Validate_Take_Furnace.
Was the player trying to take ... the log?
Validate_Take_Log EF7E LD HL,$E825 Call Parser_AdvanceToSeparator with E825.
EF81 CALL Parser_AdvanceToSeparator
EF84 JR NZ,Validate_Take_Horn Jump to Validate_Take_Horn if the token isn't for the log.
EF86 LD A,$44 Call Take_IsPlayerHoldingItem with item 44: "A log".
EF88 CALL Take_IsPlayerHoldingItem
EF8B LD A,$45 Call Handler_DestroyItem with item 45: "A log,bridging the chasm".
EF8D CALL Handler_DestroyItem
EF90 LD A,$46 Call Handler_DestroyItem with item 46: "A log,bridging the chasm".
EF92 CALL Handler_DestroyItem
EF95 LD BC,$1115 Call UpdateObjectLocation to place "It seems too wide to jump across" in room 15: " The Western Edge of a Chasm".
EF98 CALL UpdateObjectLocation
EF9B LD BC,$1216 Call UpdateObjectLocation to place "It seems too wide to jump across" in room 16: " The Eastern Edge of a Chasm".
EF9E CALL UpdateObjectLocation
This action changes the map:
EFA1 XOR A Write 00 to *Exit_WesternChasmEast to remove access to The Eastern Edge of a Chasm from The Western Edge of a Chasm.
EFA2 LD ($E9B4),A
EFA5 LD ($E9BB),A Write 00 to *Exit_EasternChasmWest to remove access to The Western Edge of a Chasm from The Eastern Edge of a Chasm.
EFA8 LD B,$44 Load B with "A log".
EFAA JP TakeItem Jump to TakeItem.
Prev: EF68 Up: Map Next: EFAD