Prev: F793 Up: Map Next: F7C0
F7AC: Process: Lose Salt
Used by the routines at Process_EnterIntoPool and Process_EnterIntoLake.
Did the player do something to lose the salt (e.g. enter some water).
Is the player carrying any salt?
Process_LoseSalt F7AC LD A,$19 Call CheckObjectInInventory with item 19: "Some salt".
F7AE CALL CheckObjectInInventory
F7B1 RET NZ Return if "Some salt" is not in the players inventory.
The player is carrying the salt!
F7B2 LD A,E Call Handler_DestroyItemEvent with item 19: "Some salt".
F7B3 CALL Handler_DestroyItemEvent
The salt has been dissolved so handle the inventory count.
F7B6 LD HL,$A790 Decrease *Count_InventoryItems by one.
F7B9 DEC (HL)
Print " The salt has dissolved.".
F7BA LD HL,$E060 HL=Messaging_SaltHasDissolved.
F7BD JP PrintStringAndNewline_Duplicate Jump to PrintStringAndNewline_Duplicate.
Prev: F793 Up: Map Next: F7C0