![]() |
Routines |
| Prev: ED65 | Up: Map | Next: EDB1 |
|
Take the bottle of oil, or fill an empty bottle.
|
||||
| Take_Oil | ED8B | LD A,$3A | Call IsObjectInInventory with item 3A: "A bottle of oil.". | |
| ED8D | CALL IsObjectInInventory | |||
| ED90 | LD A,$3A | Call Take_IsPlayerHoldingItem if "A bottle of oil." is in the inventory. | ||
| ED92 | CALL Z,Take_IsPlayerHoldingItem | |||
| ED95 | LD B,A | Jump to Handler_CheckPlayerInventory_PickUpItem if "A bottle of oil." is present. | ||
| ED96 | CALL ValidateItemPresent | |||
| ED99 | LD A,B | |||
| ED9A | JP Z,Handler_CheckPlayerInventory_PickUpItem | |||
| ED9D | LD A,$37 | Call IsObjectInInventory with item 37: "A bottle.". | ||
| ED9F | CALL IsObjectInInventory | |||
| EDA2 | JP NZ,Response_YouHaveNothingToCarryItIn | Jump to Response_YouHaveNothingToCarryItIn if "A bottle." is not in the inventory. | ||
| EDA5 | LD BC,$373A | Call TransformItem to transform "A bottle." into "A bottle of oil.". | ||
| EDA8 | CALL TransformItem | |||
|
Print "You now have a bottle of oil.".
|
||||
| EDAB | LD HL,$D367 | HL=Messaging_YouNowHaveABottleOfOil. | ||
| EDAE | JP PrintResponse | Jump to PrintResponse. | ||
| Prev: ED65 | Up: Map | Next: EDB1 |