![]() |
Routines |
| Prev: 62863 | Up: Map | Next: 62950 |
|
Take the songbird, or cage it if the empty cage is held.
|
||||
| Take_Songbird | 62899 | LD HL,58657 | HL=Data_ItemGroup_Songbird. | |
| 62902 | CALL CheckActiveScenicEvents | Call CheckActiveScenicEvents. | ||
| 62905 | CP 42 | Jump to Handler_CheckPlayerInventory_PickUpItem if A is not 42. | ||
| 62907 | JP NZ,Handler_CheckPlayerInventory_PickUpItem | |||
| 62910 | LD HL,44664 | Jump to Take_Songbird_0 if bit 0 of *Flag_TurnScratch is set. | ||
| 62913 | BIT 0,(HL) | |||
| 62915 | JR NZ,Take_Songbird_0 | |||
|
Print "It is frightened of you and it
flutters away.".
|
||||
| 62917 | LD HL,53955 | HL=Messaging_ItIsFrightenedOfYouAndItFluttersAway. | ||
| 62920 | JP PrintResponse | Jump to PrintResponse. | ||
| Take_Songbird_0 | 62923 | LD A,100 | Call IsObjectInInventory with item 100: "A wicker cage.". | |
| 62925 | CALL IsObjectInInventory | |||
| 62928 | JP NZ,Response_YouHaveNothingToCarryItIn | Jump to Response_YouHaveNothingToCarryItIn if the Z flag is not set. | ||
| 62931 | LD BC,25643 | Call TransformItem to transform "A wicker cage." into "A songbird in a wicker cage.". | ||
| 62934 | CALL TransformItem | |||
| 62937 | LD A,42 | Call HandlerDestroyItemEvent with item 42: "A songbird.". | ||
| 62939 | CALL HandlerDestroyItemEvent | |||
| 62942 | LD A,2 | Call AddToScore with 2. | ||
| 62944 | CALL AddToScore | |||
| 62947 | JP Response_OK_GameLoop | Jump to Response_OK_GameLoop. | ||
| Prev: 62863 | Up: Map | Next: 62950 |