Prev: C443 Up: Map Next: C568
C556: Update Slimy Creature
Used by the routine at ScriptRoutine_TaskThreeClearUpstairs.
Arm the slimy-creature timer at TaskThree_Workspace, set bit 00 of the entity flags, and return a fresh random byte in A.
Input
IX Address of complex state data for an entity
Update_Slimy_Creature C556 CALL PseudoRandom Call PseudoRandom to pick a pseudo-random value.
C559 ADD A,$02 Add 02 to A (step a word index).
C55B LD ($C2E4),A Set the task-three byte (TaskThree_Workspace).
C55E SET 0,(IX+$03) Set bit 00 of the current entity's flags byte 3.
C562 LD A,$02 Load A with 02.
C564 CALL PseudoRandom Call PseudoRandom to pick a pseudo-random value.
C567 RET Return.
Prev: C443 Up: Map Next: C568