![]() |
Routines |
| Prev: ED31 | Up: Map | Next: ED5F |
|
Take the bottle of water, or fill an empty bottle.
|
||||
| Take_Water | ED3A | LD A,$38 | Call IsObjectInInventory with item 38: "A bottle of water.". | |
| ED3C | CALL IsObjectInInventory | |||
| ED3F | LD A,$38 | Call Take_IsPlayerHoldingItem if "A bottle of water." is in the inventory. | ||
| ED41 | CALL Z,Take_IsPlayerHoldingItem | |||
| ED44 | LD B,A | Jump to Handler_CheckPlayerInventory_PickUpItem if "A bottle of water." is present. | ||
| ED45 | CALL ValidateItemPresent | |||
| ED48 | LD A,B | |||
| ED49 | JP Z,Handler_CheckPlayerInventory_PickUpItem | |||
| ED4C | LD A,$37 | Call IsObjectInInventory with item 37: "A bottle.". | ||
| ED4E | CALL IsObjectInInventory | |||
| ED51 | JR NZ,Response_YouHaveNothingToCarryItIn | Jump to Response_YouHaveNothingToCarryItIn if "A bottle." is not in the inventory. | ||
| ED53 | LD BC,$3738 | Call TransformItem to transform "A bottle." into "A bottle of water.". | ||
| ED56 | CALL TransformItem | |||
|
Print "You now have a bottle of water.".
|
||||
| ED59 | LD HL,$D307 | HL=Messaging_YouNowHaveABottleOfWater. | ||
| ED5C | JP PrintResponse | Jump to PrintResponse. | ||
| Prev: ED31 | Up: Map | Next: ED5F |