![]() |
Routines |
Prev: F23E | Up: Map | Next: F26C |
|
||||
The player wants to throw the food to the wolves, check if the player is carrying the meat.
|
||||
Process_ThrowFoodToWolves | F259 | LD A,$22 | Call IsPlayerCarryingItem with item 22: "Some food". | |
F25B | CALL IsPlayerCarryingItem | |||
The player is carrying the food, so destroy the item.
|
||||
F25E | LD A,E | Call Handler_DestroyItemEvent with the item ID originally passed to the routine. | ||
F25F | CALL Handler_DestroyItemEvent | |||
The wolves have eaten an item so handle the inventory count.
|
||||
F262 | LD HL,$A790 | Decrease *Count_InventoryItems by one. | ||
F265 | DEC (HL) | |||
Print "The wolves eat the food.".
|
||||
F266 | LD HL,$D72F | HL=Messaging_WolvesEatTheFood. | ||
F269 | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. |
Prev: F23E | Up: Map | Next: F26C |