Prev: 53812 Up: Map Next: 54363
54342: Check Entity Collision
Used by the routine at Update_Entity_Slot.
Check Entity Collision against the complex entity table at StateData_Boney.
Called from 45952 on a type-8 / type-11 pair: set bit 7 of TaskOneCollisionFlags, bump CollisionScratchByte, and on the third bump set bit 6 of TaskOneCollisionFlags (cleared by 60856).
Check_Entity_Collision 54342 PUSH HL Stash HL on the stack.
54343 LD HL,29368 Point HL at task-one / collision flags (TaskOneCollisionFlags).
54346 SET 7,(HL) Set bit 7 of TaskOneCollisionFlags.
54348 LD A,(29373) Load the collision scratch byte (CollisionScratchByte) into A.
54351 INC A Advance that counter by one.
54352 LD (29373),A Store the counter back to CollisionScratchByte.
54355 CP 3 Has CollisionScratchByte reached 3? If not, jump to Check_Entity_Collision_RestoreReturn.
54357 JR NZ,Check_Entity_Collision_RestoreReturn
54359 SET 6,(HL) Set bit 6 of TaskOneCollisionFlags.
Restore HL and return after recording the type-8 / 11 collision.
Check_Entity_Collision_RestoreReturn 54361 POP HL Restore HL from the stack.
54362 RET Return.
Prev: 53812 Up: Map Next: 54363