![]() |
Routines |
Prev: F0AC | Up: Map | Next: F179 |
|
||||
Process_BuyMeatFromTraderWithIron | F156 | LD A,$3C | Call ValidateItemPresent with item 3C: "A trader,selling some meat". | |
F158 | CALL ValidateItemPresent | |||
If "A trader,selling some meat" is not present in the current room then print "You can't.".
|
||||
F15B | JP NZ,Response_YouCant_Duplicate | Jump to Response_YouCant_Duplicate if "A trader,selling some meat" is not present in the current room. | ||
The trader is in the room, but is the player holding the iron?
|
||||
F15E | LD A,$23 | Call IsPlayerCarryingItem with item 23: "Some iron". | ||
F160 | CALL IsPlayerCarryingItem | |||
The player is holding the iron and the trader is present.
Change the iron/ meat state!
|
||||
F163 | LD BC,$233A | Call TransformItem to transform item 23 ("Some iron") into item 3A ("Some meat"). | ||
F166 | CALL TransformItem | |||
F169 | LD A,$04 | Call AddToScore to add 04 points to the score. | ||
F16B | CALL AddToScore | |||
The trader is no longer needed.
|
||||
F16E | LD A,$3C | Call Handler_DestroyItemEvent with item 3C: "A trader,selling some meat". | ||
F170 | CALL Handler_DestroyItemEvent | |||
Print "He accepts the iron as payment
and gives you the meat before
moving off into the crowd.".
|
||||
F173 | LD HL,$D58F | HL=Messaging_AcceptsIronAsPayment. | ||
F176 | JP $ED6D | Jump to ED6D. |
Prev: F0AC | Up: Map | Next: F179 |