![]() |
Routines |
| Prev: F58F | Up: Map | Next: F5E6 |
|
Take the songbird, or cage it if the empty cage is held.
|
||||
| Take_Songbird | F5B3 | LD HL,$E521 | HL=Data_ItemGroup_Songbird. | |
| F5B6 | CALL CheckActiveScenicEvents | Call CheckActiveScenicEvents. | ||
| F5B9 | CP $2A | Jump to Handler_CheckPlayerInventory_PickUpItem if A is not 2A. | ||
| F5BB | JP NZ,Handler_CheckPlayerInventory_PickUpItem | |||
| F5BE | LD HL,$AE78 | Jump to Take_Songbird_0 if bit 0 of *Flag_TurnScratch is set. | ||
| F5C1 | BIT 0,(HL) | |||
| F5C3 | JR NZ,Take_Songbird_0 | |||
|
Print "It is frightened of you and it
flutters away.".
|
||||
| F5C5 | LD HL,$D2C3 | HL=Messaging_ItIsFrightenedOfYouAndItFluttersAway. | ||
| F5C8 | JP PrintResponse | Jump to PrintResponse. | ||
| Take_Songbird_0 | F5CB | LD A,$64 | Call IsObjectInInventory with item 64: "A wicker cage.". | |
| F5CD | CALL IsObjectInInventory | |||
| F5D0 | JP NZ,Response_YouHaveNothingToCarryItIn | Jump to Response_YouHaveNothingToCarryItIn if the Z flag is not set. | ||
| F5D3 | LD BC,$642B | Call TransformItem to transform "A wicker cage." into "A songbird in a wicker cage.". | ||
| F5D6 | CALL TransformItem | |||
| F5D9 | LD A,$2A | Call HandlerDestroyItemEvent with item 2A: "A songbird.". | ||
| F5DB | CALL HandlerDestroyItemEvent | |||
| F5DE | LD A,$02 | Call AddToScore with 02. | ||
| F5E0 | CALL AddToScore | |||
| F5E3 | JP Response_OK_GameLoop | Jump to Response_OK_GameLoop. | ||
| Prev: F58F | Up: Map | Next: F5E6 |