Prev: F001 Up: Map Next: F058
F027: Throw: Honey To Bear
Throw the honey to the bear.
Throw_HoneyToBear F027 LD A,$70 Call IsPlayerCarryingItem with item 70: "Some honey.".
F029 CALL IsPlayerCarryingItem
F02C LD A,$07 Call ValidateItemPresent with item 07: "A bear.".
F02E CALL ValidateItemPresent
F031 JR Z,Throw_HoneyToBear_0 Jump to Throw_HoneyToBear_0 if the Z flag is set.
Print "You can't. It's sleeping.".
F033 LD HL,$D471 HL=Messaging_YouCantIts.
F036 JP PrintResponse Jump to PrintResponse.
Throw_HoneyToBear_0 F039 LD A,$70 Call HandlerDestroyItemEvent with item 70: "Some honey.".
F03B CALL HandlerDestroyItemEvent
F03E LD HL,$AE9A Decrease *Count_InventoryItems by one.
F041 DEC (HL)
F042 LD BC,$0708 Call TransformItem to transform "A bear." into "A sleeping bear.".
F045 CALL TransformItem
F048 LD A,$02 Call AddToScore with 02.
F04A CALL AddToScore
F04D LD A,$08 Write 08 to open eastbound access to The Valley from The Narrow Path.
F04F LD ($E812),A
Print "The bear eats the honey,yawns and promptly goes to sleep.".
F052 LD HL,$D576 HL=Messaging_TheBearEatsTheHoneyYawnsAndPromptlyGoes.
F055 JP PrintResponse Jump to PrintResponse.
Prev: F001 Up: Map Next: F058