![]() |
Routines |
| Prev: BC00 | Up: Map | Next: BC2F |
|
Used by the routine at GameStart.
Drive complex entity slot 20 when its type is 22: copy its script cursor through Pointer_ActiveScriptCursor, run the next instruction, then save the cursor back.
|
||||
| Update_ThingUpstairs_Entity | BC12 | LD A,($72A9) | Return if Learner Berk mode is set. | |
| BC15 | OR A | |||
| BC16 | RET NZ | |||
| BC17 | LD A,($9001) | Jump to Update_ThingUpstairs_Entity_ArmSpawn unless complex entity slot 20's type (StateData_Complex_20) is 22. | ||
| BC1A | CP $22 | |||
| BC1C | JP NZ,Update_ThingUpstairs_Entity_ArmSpawn | |||
| BC1F | LD HL,($72D9) | Copy Pointer_ThingUpstairsScriptPosition back to the active script cursor. | ||
| BC22 | LD ($72CF),HL | |||
| BC25 | CALL Update_ThingUpstairs_Entity_State | Call Update_ThingUpstairs_Entity_State to update Thing Upstairs Entity State. | ||
| BC28 | LD HL,($72CF) | Copy the active script cursor to Pointer_ThingUpstairsScriptPosition. | ||
| BC2B | LD ($72D9),HL | |||
| BC2E | RET | Return. | ||
| Prev: BC00 | Up: Map | Next: BC2F |