Prev: CEE1 Up: Map Next: CF35
CF1E: Update Crusher
Used by the routine at Update_Entity_Slot.
Called from Update_Entity_Slot on the crusher entity path: set bit 04 of EntityInteractionFlag, advance the shared tick at SharedTick, and once that tick reaches 03 also set bit 06. Bit 07 is set on every call.
Mark Berk crushed and advance the shared tick.
Update_Crusher CF1E PUSH HL Stash HL on the stack.
CF1F LD HL,$72B9 Point HL at the entity interaction flag (EntityInteractionFlag).
CF22 SET 4,(HL) Set bit 04 of EntityInteractionFlag.
CF24 LD A,($72C2) Load the shared tick (SharedTick) into A.
CF27 INC A Advance the shared tick by one.
CF28 LD ($72C2),A Store the shared tick (SharedTick).
CF2B CP $03 Is the shared tick still under 03? If so, skip bit 06 at Update_Crusher_Active.
CF2D JR C,Update_Crusher_Active
CF2F SET 6,(HL) Set bit 06 of EntityInteractionFlag.
Raise bit 07 of EntityInteractionFlag and return.
Update_Crusher_Active CF31 SET 7,(HL) Set bit 07 of EntityInteractionFlag.
CF33 POP HL Restore HL from the stack.
CF34 RET Return.
Prev: CEE1 Up: Map Next: CF35