![]() |
Routines |
| Prev: F3FB | Up: Map | Next: F460 |
|
Oil the rusty chest with the bottle of oil.
|
||||
| Kill_Chest | F42A | LD A,$3A | Call IsObjectInInventory with item 3A: "A bottle of oil.". | |
| F42C | CALL IsObjectInInventory | |||
| F42F | JR Z,Kill_Chest_0 | Jump to Kill_Chest_0 if the Z flag is set. | ||
|
Print "You have no oil.".
|
||||
| F431 | LD HL,$DD26 | HL=Messaging_YouHaveNoOil. | ||
| F434 | JP PrintResponse | Jump to PrintResponse. | ||
| Kill_Chest_0 | F437 | LD A,$4E | Call ValidateItemPresent with item 4E: "A venomous spider.". | |
| F439 | CALL ValidateItemPresent | |||
| F43C | JR NZ,Kill_Chest_1 | Jump to Kill_Chest_1 if the Z flag is not set. | ||
|
Print "The spider prevents you.".
|
||||
| F43E | LD HL,$D256 | HL=Messaging_TheSpiderPreventsYou. | ||
| F441 | JP PrintResponse | Jump to PrintResponse. | ||
| Kill_Chest_1 | F444 | LD BC,$3A37 | Call TransformItem to transform "A bottle of oil." into "A bottle.". | |
| F447 | CALL TransformItem | |||
| F44A | LD A,$50 | Call ValidateItemPresent with item 50: "A rusty,iron chest.". | ||
| F44C | CALL ValidateItemPresent | |||
| F44F | JP NZ,Response_OK_GameLoop | Jump to Response_OK_GameLoop if the Z flag is not set. | ||
| F452 | LD BC,$5051 | Call TransformItem to transform "A rusty,iron chest." into "A chest with oiled hinges.". | ||
| F455 | CALL TransformItem | |||
| F458 | LD A,$02 | Call AddToScore with 02. | ||
| F45A | CALL AddToScore | |||
| F45D | JP Response_OK_GameLoop | Jump to Response_OK_GameLoop. | ||
| Prev: F3FB | Up: Map | Next: F460 |