Prev: F156 Up: Map Next: F1D9
F179: Routine at F179
F179 LD A,$23 A=23.
This entry point is used by the routine at F1DF.
F17B CALL IsPlayerCarryingItem Call IsPlayerCarryingItem.
F17E LD A,E A=E.
F17F CALL Handler_DestroyItemEvent Call Handler_DestroyItemEvent.
F182 LD A,$3C A=3C.
F184 CALL Handler_DestroyItemEvent Call Handler_DestroyItemEvent.
F187 LD HL,$A790 HL=Count_InventoryItems.
F18A DEC (HL) Decrease *HL by one.
F18B LD HL,$D5E7 HL=Messaging_TraderTakesItSaysThankYou.
F18E JP $ED6D Jump to ED6D.
F191 LD A,$0B A=0B.
F193 CALL Handler_DestroyItemEvent Call Handler_DestroyItemEvent.
F196 LD HL,$A787 HL=A787.
F199 RES 0,(HL) Reset bit 0 of *HL.
F19B LD BC,$494B Call TransformItem to transform item 49 ("A druid wearing an amulet") into item 4B ("An amulet").
F19E CALL TransformItem
F1A1 LD A,$04 Call AddToScore to add 04 points to the score.
F1A3 CALL AddToScore
F1A6 LD HL,$D640 HL=Messaging_DruidRemovesTheAmulet.
F1A9 JP $ED6D Jump to ED6D.
F1AC LD A,$45 A=45.
F1AE CALL ValidateItemPresent Call ValidateItemPresent.
F1B1 JP Z,Response_DontBeRidiculous Jump to Response_DontBeRidiculous if *HL is equal to 45.
F1B4 LD HL,$D695 HL=Messaging_GettingTooClose.
F1B7 CALL PrintStringAndNewline Call PrintStringAndNewline.
F1BA LD HL,$E9B2 HL=GameOver.
F1BD EX (SP),HL Exchange the *SP with the HL register.
F1BE LD HL,$D6B0 HL=Messaging_MightyPaws.
F1C1 JP $ED71 Jump to ED71.
F1C4 LD HL,$D695 HL=Messaging_GettingTooClose.
F1C7 CALL PrintStringAndNewline Call PrintStringAndNewline.
F1CA LD HL,$E9B2 HL=GameOver.
F1CD EX (SP),HL Exchange the *SP with the HL register.
F1CE LD HL,$D6E3 HL=Messaging_WolvesUponYou.
F1D1 JP $ED71 Jump to ED71.
F1D4 LD A,$19 A=19.
F1D6 JP $F17B Jump to F17B.
Prev: F156 Up: Map Next: F1D9