Prev: 62295 Up: Map Next: 62360
62315: Take: Plank
Used by the routine at Validate_Take_Match.
Was the player trying to take the plank?
Validate_Take_Plank 62315 LD HL,59875 Call MatchPhraseTokens with PhraseTokens_Plank.
62318 CALL MatchPhraseTokens
62321 JR NZ,Validate_Take_Coconut Jump to Validate_Take_Coconut if the token isn't for the plank.
Which plank is present?
62323 LD HL,59505 Call CheckActiveScenicEvents with Data_ItemGroup_Plank.
62326 CALL CheckActiveScenicEvents
62329 CALL Take_IsPlayerHoldingItem Call Take_IsPlayerHoldingItem.
62332 LD A,B Copy the object ID back into A.
62333 CP 4 Jump to TakeItem if this is "A plank".
62335 JP Z,TakeItem
The plank was spanning the pit; pull it up and seal the crossing.
62338 LD A,5 Call Handler_DestroyItemEvent with item 5: "A plank (spanning the pit)".
62340 CALL Handler_DestroyItemEvent
62343 LD A,6 Call Handler_DestroyItemEvent with item 6: "A plank (spanning the pit)".
62345 CALL Handler_DestroyItemEvent
62348 LD B,4 Load B with "A plank".
This action changes the map:
62350 XOR A Write 0 to *60789 to remove access to The Southern Side of the Pit from The Wide Pit.
62351 LD (60789),A
62354 LD (60800),A Write 0 to *60800 to remove access to The Wide Pit from The Southern Side of the Pit.
62357 JP TakeItem Jump to TakeItem.
Prev: 62295 Up: Map Next: 62360