| Alien (BUGFIX 1.7) | Routines |
| Prev: 37490 | Up: Map | Next: 37520 |
|
Used by the routine at 35790.
Action on the " ATTACK " row: queue the combat job — action state 4 (CrewAction4_Handler -> CrewHitsAlien / CrewHitsAndroid) with base countdown 40, replacing any pending action. Then put the special row back to what the room warrants (49 "RmveGrille" or blank, via the grille-state refresh at $B0B8) and move the cursor on.
|
||||
| 37493 | LD A,40 | base countdown 40 | ||
| 37495 | CALL 35814 | arm it (SetActionTimer) | ||
| 37498 | LD (IX+3),4 | action state = 4 (combat) | ||
| 37502 | LD A,255 | (dead: A is overwritten inside the call) | ||
| 37504 | CALL 45240 | cell 13 = 49 or blank per RoomGrilleState | ||
| 37507 | LD HL,18646 | and redraw the special row | ||
| 37510 | LD (31257),HL | |||
| 37513 | CALL 31634 | |||
| 37516 | CALL 34743 | advance the cursor off the row | ||
| 37519 | RET | |||
| Prev: 37490 | Up: Map | Next: 37520 |