Prev: 61632 Up: Map Next: 61693
61659: Process: Throw Meat To Wolves
The player wants to throw the meat to the wolves, check if the player is carrying the meat.
Process_ThrowMeatToWolves 61659 LD A,58 Call IsPlayerCarryingItem with item 58: "Some meat".
61661 CALL IsPlayerCarryingItem
The player is carrying the meat, so destroy the item.
61664 LD A,E Call Handler_DestroyItemEvent with the item ID originally passed to the routine.
61665 CALL Handler_DestroyItemEvent
The wolves have eaten an item so handle the inventory count.
61668 LD HL,42896 Decrease *Count_InventoryItems by one.
61671 DEC (HL)
The wolves are appeased, the player can now pass them.
61672 LD A,48 Write 48 to *59440 to open up eastbound access to A Forest Path from A Forest Path.
61674 LD (59440),A
The wolves are now fed and so uhhh go home? Destroy the item.
61677 LD A,66 Call Handler_DestroyItemEvent with item 66: "A pack of wolves".
61679 CALL Handler_DestroyItemEvent
61682 LD A,4 Call AddToScore to add 4 points to the score.
61684 CALL AddToScore
Print "The wolves pounce greedily onto the meat and carry it off into the forest.".
61687 LD HL,54108 HL=Messaging_WolvesPounceGreedily.
61690 JP PrintStringAndNewline_Duplicate Jump to PrintStringAndNewline_Duplicate.
Prev: 61632 Up: Map Next: 61693