| Alien (BUGFIX 1.7) | Routines |
| Prev: 44996 | Up: Map | Next: 45080 |
|
Room-info hook (RefreshRoomInfo) when the alien shares the viewed room: if the viewed crew member is between attacks, offer ATTACK; while his attack countdown is still running, switch the view to the alien-encounter screen (room type 4) with both animation channels frozen.
Used by the routine at 36793.
|
||||
| 45019 | PUSH IX | |||
| 45021 | PUSH DE | |||
| 45022 | LD A,(31241) | IX -> the viewed slot's record | ||
| 45025 | ADD A,A | |||
| 45026 | ADD A,A | |||
| 45027 | ADD A,A | |||
| 45028 | LD E,A | |||
| 45029 | LD D,0 | |||
| 45031 | LD IX,29566 | |||
| 45035 | ADD IX,DE | |||
| 45037 | LD A,(IX+3) | mid-attack (state 4, timer still | ||
| 45040 | CP 4 | running)? | ||
| 45042 | JR NZ,45050 | |||
| 45044 | LD A,(IX+0) | |||
| 45047 | OR A | |||
| 45048 | JR NZ,45062 | |||
| 45050 | POP DE | not attacking yet: | ||
| 45051 | POP IX | |||
| 45053 | CALL 45278 | swap a live "RmveGrille" pick to ATTACK | ||
| 45056 | CALL 39687 | reset the encounter animation | ||
| 45059 | JP 36833 | and continue the info refresh | ||
| 45062 | POP DE | attack in progress: | ||
| 45063 | POP IX | |||
| 45065 | CALL 39687 | reset the encounter animation, | ||
| 45068 | LD HL,32896 | freeze both animation channels | ||
| 45071 | LD (31263),HL | ($8080 -> CrewAnimFlags+AnimFramePhase) | ||
| 45074 | LD A,4 | and view type 4: | ||
| 45076 | LD (31243),A | the alien-encounter screen | ||
| 45079 | RET | |||
| Prev: 44996 | Up: Map | Next: 45080 |