Prev: 50243 Up: Map Next: 50536
50518: Update Slimy Creature
Used by the routine at ScriptRoutine_TaskThreeClearUpstairs.
Arm the slimy-creature timer at TaskThree_Workspace, set bit 0 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 50518 CALL PseudoRandom Call PseudoRandom to pick a pseudo-random value.
50521 ADD A,2 Add 2 to A (step a word index).
50523 LD (49892),A Set the task-three byte (TaskThree_Workspace).
50526 SET 0,(IX+3) Set bit 0 of the current entity's flags byte 3.
50530 LD A,2 Load A with 2.
50532 CALL PseudoRandom Call PseudoRandom to pick a pseudo-random value.
50535 RET Return.
Prev: 50243 Up: Map Next: 50536