![]() |
Routines |
| Prev: 52961 | Up: Map | Next: 53045 |
|
Used by the routine at Update_Entity_Slot.
Called from Update_Entity_Slot on the crusher entity path: set bit 4 of EntityInteractionFlag, advance the shared tick at SharedTick, and once that tick reaches 3 also set bit 6. Bit 7 is set on every call.
|
||||
|
Mark Berk crushed and advance the shared tick.
|
||||
| Update_Crusher | 53022 | PUSH HL | Stash HL on the stack. | |
| 53023 | LD HL,29369 | Point HL at the entity interaction flag (EntityInteractionFlag). | ||
| 53026 | SET 4,(HL) | Set bit 4 of EntityInteractionFlag. | ||
| 53028 | LD A,(29378) | Load the shared tick (SharedTick) into A. | ||
| 53031 | INC A | Advance the shared tick by one. | ||
| 53032 | LD (29378),A | Store the shared tick (SharedTick). | ||
| 53035 | CP 3 | Is the shared tick still under 3? If so, skip bit 6 at Update_Crusher_Active. | ||
| 53037 | JR C,Update_Crusher_Active | |||
| 53039 | SET 6,(HL) | Set bit 6 of EntityInteractionFlag. | ||
|
Raise bit 7 of EntityInteractionFlag and return.
|
||||
| Update_Crusher_Active | 53041 | SET 7,(HL) | Set bit 7 of EntityInteractionFlag. | |
| 53043 | POP HL | Restore HL from the stack. | ||
| 53044 | RET | Return. | ||
| Prev: 52961 | Up: Map | Next: 53045 |