![]() |
Routines |
| Prev: F4F8 | Up: Map | Next: F528 |
|
Drink the white potion.
|
||||
| Drink_WhitePotion | F50D | LD A,$6B | Call IsPlayerCarryingItem with item 6B: "A white potion.". | |
| F50F | CALL IsPlayerCarryingItem | |||
| F512 | LD A,$6B | Call HandlerDestroyItemEvent with item 6B: "A white potion.". | ||
| F514 | CALL HandlerDestroyItemEvent | |||
| F517 | LD HL,$AE76 | Set bit 0 of *Flags_RoomChange. | ||
| F51A | SET 0,(HL) | |||
| F51C | LD A,$02 | Call AddToScore with 02. | ||
| F51E | CALL AddToScore | |||
| F521 | LD HL,$AE9A | Decrease *Count_InventoryItems by one. | ||
| F524 | DEC (HL) | |||
| F525 | JP Response_OK_GameLoop | Jump to Response_OK_GameLoop. | ||
| Prev: F4F8 | Up: Map | Next: F528 |