Prev: EFAC Up: Map Next: EFCB
EFAD: Process: Get Cloak
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 EFAD LD HL,$E3DD Call CheckItemGroupPresent with Data_ItemGroup_Cloak.
EFB0 CALL CheckItemGroupPresent
EFB3 CP $64 Jump to Handler_CheckPlayerInventory_PickUpItem if A is equal to 64.
EFB5 JP Z,Handler_CheckPlayerInventory_PickUpItem
EFB8 CALL Check_PlayerInventory Call Check_PlayerInventory.
Change the cloak state!
EFBB LD BC,$6263 Call TransformItem to transform item 62 ("The body of a young man,in a white cloak,trapped by charred fallen timbers") into item 63 ("The body of a young man,trapped by charred,fallen timbers").
EFBE CALL TransformItem
EFC1 LD A,$04 Call AddToScore to add 04 points to the score.
EFC3 CALL AddToScore
EFC6 LD B,$64 Jump to Handler_PickUpItem with item 64: "A white cloak".
EFC8 JP Handler_PickUpItem
Prev: EFAC Up: Map Next: EFCB