Prev: 63379 Up: Map Next: 63424
63404: 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 63404 LD A,25 Call CheckObjectInInventory with item 25: "Some salt".
63406 CALL CheckObjectInInventory
63409 RET NZ Return if "Some salt" is not in the players inventory.
The player is carrying the salt!
63410 LD A,E Call Handler_DestroyItemEvent with item 25: "Some salt".
63411 CALL Handler_DestroyItemEvent
The salt has been dissolved so handle the inventory count.
63414 LD HL,42896 Decrease *Count_InventoryItems by one.
63417 DEC (HL)
Print " The salt has dissolved.".
63418 LD HL,57440 HL=Messaging_SaltHasDissolved.
63421 JP PrintStringAndNewline_Duplicate Jump to PrintStringAndNewline_Duplicate.
Prev: 63379 Up: Map Next: 63424