![]() |
Routines |
Prev: F0C0 | Up: Map | Next: F0FD |
|
||||
The player wants to throw the meat to the wolves, check if the player is carrying the meat.
|
||||
Process_ThrowMeatToWolves | F0DB | LD A,$3A | Call IsPlayerCarryingItem with item 3A: "Some meat". | |
F0DD | CALL IsPlayerCarryingItem | |||
The player is carrying the meat, so destroy the item.
|
||||
F0E0 | LD A,E | Call Handler_DestroyItemEvent with the item ID originally passed to the routine. | ||
F0E1 | CALL Handler_DestroyItemEvent | |||
The wolves have eaten an item so handle the inventory count.
|
||||
F0E4 | LD HL,$A790 | Decrease *Count_InventoryItems by one. | ||
F0E7 | DEC (HL) | |||
The wolves are appeased, the player can now pass them.
|
||||
F0E8 | LD A,$30 | Write 30 to *E830 to open up eastbound access to A Forest Path from A Forest Path. | ||
F0EA | LD ($E830),A | |||
The wolves are now fed and so uhhh go home? Destroy the item.
|
||||
F0ED | LD A,$42 | Call Handler_DestroyItemEvent with item 42: "A pack of wolves". | ||
F0EF | CALL Handler_DestroyItemEvent | |||
F0F2 | LD A,$04 | Call AddToScore to add 04 points to the score. | ||
F0F4 | CALL AddToScore | |||
Print "The wolves pounce greedily onto
the meat and carry it off into
the forest.".
|
||||
F0F7 | LD HL,$D35C | HL=Messaging_WolvesPounceGreedily. | ||
F0FA | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. |
Prev: F0C0 | Up: Map | Next: F0FD |