![]() |
Routines |
| Prev: 50690 | Up: Map | Next: 50731 |
|
Used by the routines at Update_Drutt and Update_Task_Three_Entity_State.
Refresh the cauldron entity after Drutt drops something in, then idle the current task phase.
|
||||
| Update_Cauldron | 50701 | XOR A | Clear the current task phase (idle). | |
| 50702 | LD (29359),A | Set the current task phase (CurrentTaskPhase). | ||
| 50705 | LD HL,29363 | Point HL at the game event flags (GameEventFlags). | ||
| 50708 | RES 7,(HL) | Clear "task entity script is active" (bit 7 of GameEventFlags). | ||
| 50710 | LD HL,49896 | Point HL at task-three storage (49896). | ||
| 50713 | LD (29391),HL | Store HL in the active script cursor (Pointer_ActiveScriptCursor). | ||
| 50716 | LD (29393),HL | Store HL in the task-three script-position pointer (Pointer_TaskThreeScriptPosition). | ||
| 50719 | LD HL,50731 | Point HL at the 10-byte init template at Data_CauldronInitTemplate (copied into StateData_Complex_32). | ||
| 50722 | LD DE,37033 | Point DE at the task-three helper entity slot (StateData_Complex_32). | ||
| 50725 | LD BC,10 | Load BC with 0010 (bytes to copy into the helper entity slot). | ||
| 50728 | LDIR | Copy the block at HL to DE. | ||
| 50730 | RET | Return. | ||
| Prev: 50690 | Up: Map | Next: 50731 |