Prev: F42A Up: Map Next: F4BA
F460: Oil: Plant
Water the plant from the bottle of water.
Oil_Plant F460 LD A,$38 Call IsObjectInInventory with item 38: "A bottle of water.".
F462 CALL IsObjectInInventory
F465 JR Z,Oil_Plant_0 Jump to Oil_Plant_0 if the Z flag is set.
Print "You have no water.".
F467 LD HL,$DD37 HL=Messaging_YouHaveNoWater.
F46A JP PrintResponse Jump to PrintResponse.
Oil_Plant_0 F46D LD BC,$3837 Call TransformItem to transform "A bottle of water." into "A bottle.".
F470 CALL TransformItem
F473 LD HL,$E5B6 HL=Data_ItemGroup_Plant.
F476 CALL CheckActiveScenicEvents Call CheckActiveScenicEvents.
F479 CP $78 Jump to Response_OK_GameLoop if A is 78.
F47B JP Z,Response_OK_GameLoop
F47E CP $85 Jump to Response_OK_GameLoop if A is 85.
F480 JP Z,Response_OK_GameLoop
F483 CP $77 Jump to Oil_Plant_1 if A is 77.
F485 JR Z,Oil_Plant_1
F487 LD BC,$7677 Call TransformItem to transform "A tiny plant." into "A plant,6 feet in height.".
F48A CALL TransformItem
F48D LD A,$03 Call AddToScore with 03.
F48F CALL AddToScore
F492 CALL Response_OK_GameLoop Call Response_OK_GameLoop.
Print "The plant grows swiftly then suddenly stops,at a height of six feet.".
F495 LD HL,$DD4A HL=Messaging_ThePlantGrowsSwiftlyThenSuddenlyStopsAt.
F498 JP PrintResponse Jump to PrintResponse.
Oil_Plant_1 F49B LD BC,$7778 Call TransformItem to transform "A plant,6 feet in height." into "A massive beanstalk.".
F49E CALL TransformItem
F4A1 LD A,$1E Write 1E to open up access to The King's Stairway from The Plant Room.
F4A3 LD ($E95E),A
F4A6 LD BC,$851E Call SetItemRoom with item 85 in room 1E.
F4A9 CALL SetItemRoom
F4AC LD A,$02 Call AddToScore with 02.
F4AE CALL AddToScore
F4B1 CALL Response_OK_GameLoop Call Response_OK_GameLoop.
Print "The plant grows and forms a giant beanstalk reaching upward.".
F4B4 LD HL,$DD8F HL=Messaging_ThePlantGrowsAndFormsAGiantBeanstalk.
F4B7 JP PrintResponse Jump to PrintResponse.
Prev: F42A Up: Map Next: F4BA