Prev: 61130 Up: Map Next: 61161
61135: Process: Get Acorns
The player wants to pick up the acorns, check if there are any issues with allowing this (if the inventory is full, or the player is already carrying them).
Process_GetAcorns 61135 LD A,27 Call Check_PlayerInventory with item 27: "Some acorns".
61137 CALL Check_PlayerInventory
All is good, but is this the first time the player has picked up the acorns?
61140 LD HL,42861 Jump to GetAcorns if bit 3 of *Flag_GameStates_02 is set, which relates to carrying the acorns.
61143 BIT 3,(HL)
61145 JR NZ,GetAcorns
61147 SET 3,(HL) Set bit 3 of *Flag_GameStates_02 to signify that the acorns have been picked up. This is to prevent the raven from being spawned more than once.
61149 LD B,29 Call Handler_UpdateItemLocation to update item 29: "A raven,perched on the root of a large tree" to be in room Dense Woodland.
61151 LD C,19
61153 CALL Handler_UpdateItemLocation
GetAcorns 61156 LD B,27 Jump to Handler_PickUpItem with item 27: "Some acorns".
61158 JP Handler_PickUpItem
Prev: 61130 Up: Map Next: 61161