![]() |
Routines |
Prev: 61356 | Up: Map | Next: 61387 |
Used by the routine at Process_TakeCloakFromBody.
|
||||
The player wants to pick up the cloak, check which version of it is in the current room.
|
||||
Process_GetCloak | 61357 | LD HL,58333 | Call CheckItemGroupPresent with Data_ItemGroup_Cloak. | |
61360 | CALL CheckItemGroupPresent | |||
61363 | CP 100 | Jump to Handler_CheckPlayerInventory_PickUpItem if A is equal to 100. | ||
61365 | JP Z,Handler_CheckPlayerInventory_PickUpItem | |||
61368 | CALL Check_PlayerInventory | Call Check_PlayerInventory. | ||
Change the cloak state!
|
||||
61371 | LD BC,25187 | Call TransformItem to transform item 98 ("The body of a young man,in a white cloak,trapped by charred fallen timbers") into item 99 ("The body of a young man,trapped by charred,fallen timbers"). | ||
61374 | CALL TransformItem | |||
61377 | LD A,4 | Call AddToScore to add 4 points to the score. | ||
61379 | CALL AddToScore | |||
61382 | LD B,100 | Jump to Handler_PickUpItem with item 100: "A white cloak". | ||
61384 | JP Handler_PickUpItem |
Prev: 61356 | Up: Map | Next: 61387 |