Prev: 37718 Up: Map Next: 37778
37753: Script routine: (42) Decrease remaining time until spider next descends and if zero, start descent
Used by the routine at 48096.
Input
IX Address of complex state data for an entity
Output
HL New address in script data
37753 BIT 0,(IX+9) If spider's must-process-current-script-data flag is reset...
37757 JP Z,48096 ...then jump to 48096 (advance HL to next script instruction and execute)
37760 LD A,(IX+12) If spider's timer is zero...
37763 OR A ...
37764 JR Z,37772 ...then skip ahead to 37772
37766 DEC (IX+12) Decrease remaining time on spider's timer
37769 JP 48096 Advance HL to next script instruction and execute
37772 LD HL,37800 Point HL at script data for spider moving down...
37775 JP 48098 ...and execute
Prev: 37718 Up: Map Next: 37778