Prev: C378 Up: Map Next: C3D7
C3B2: Update Task Three Entity State
Used by the routine at Update_Task_Three_Entities.
Update Task Three Entity State for the current Thing Upstairs task.
Update_Task_Three_Entity_State C3B2 LD IX,$90A9 Point IX at the inactive complex slot (StateData_Complex_32).
C3B6 LD A,($72B3) Load A with the game event flags (GameEventFlags).
C3B9 LD C,A Keep game event flags in C for later.
C3BA BIT 7,C Is bit 07 of the saved game-event flags in C set? If so, jump to AdvanceScriptInstruction.
C3BC JP NZ,AdvanceScriptInstruction
C3BF LD A,(IX+$00) Fetch the current entity's type for the type test.
C3C2 OR A Is the current entity's entity type zero? If so, jump to Update_Task_Three_Entity_State_MarkHelper.
C3C3 JR Z,Update_Task_Three_Entity_State_MarkHelper
C3C5 BIT 1,C Is bit 01 of the saved game-event flags in C set? If so, jump to AdvanceScriptInstruction.
C3C7 JP NZ,AdvanceScriptInstruction
C3CA JP Update_Cauldron Jump to Update_Cauldron.
Trap open and slot empty: mark the task-three entity type 20 and continue its script.
Update_Task_Three_Entity_State_MarkHelper C3CD BIT 1,C Is bit 01 of the saved game-event flags in C set? If not, return.
C3CF RET Z
C3D0 LD (IX+$00),$20 Write 20 to the current entity's entity type.
C3D4 JP AdvanceScriptInstruction Jump to AdvanceScriptInstruction to run the next script instruction.
Prev: C378 Up: Map Next: C3D7