| Alien (BUGFIX 1.7) | Routines |
| Prev: 36283 | Up: Map | Next: 36448 |
|
Grim events shake the whole crew: -1 courage and -1 morale for all 7 crew members (each clamped at 0). Triggered by finding a body (36283) and by witnessing a kill (45585). The loop body is split: DecayMoraleStep handles the morale byte and the loop stepping, then refreshes the viewed condition line.
|
||||
| 36428 | LD HL,29579 | HL -> slot 1's courage byte (+5) | ||
| 36431 | LD DE,8 | record stride | ||
| 36434 | LD B,7 | all 7 crew | ||
|
This entry point is used by the routine at 45539.
|
||||
| 36436 | DEC (HL) | courage -= 1, | ||
| 36437 | LD A,127 | |||
| 36439 | CP (HL) | clamping an underflow | ||
| 36440 | JR NC,36444 | |||
| 36442 | LD (HL),0 | to 0 | ||
| 36444 | JP 45539 | morale -= 1 too, then loop | ||
| 36447 | RET | (DecayMoraleStep returns from here) | ||
| Prev: 36283 | Up: Map | Next: 36448 |