| Alien (BUGFIX 1.7) | Routines |
| Prev: 44591 | Up: Map | Next: 44698 |
|
RatingScore += 2 x strength for every crew member who is still alive (+7 = 0), the Android's slot excluded. Which terms an ending adds is what distinguishes the outcomes (see the EndgameScreen header): destroying the alien scores crew + rooms + oxygen; going up with the ship scores oxygen only; escaping with the destruct armed scores crew + oxygen; letting the alien survive scores 0.
Used by the routine at 44125.
|
||||
| 44651 | LD IX,29574 | IX -> slot 1's record | ||
| 44655 | LD DE,8 | |||
| 44658 | XOR A | A' = running total 0 | ||
| 44659 | EX AF,AF' | |||
| 44660 | LD BC,1793 | B = 7 slots, C = slot 1 | ||
| 44663 | LD A,(33703) | the Android earns nothing | ||
| 44666 | CP C | |||
| 44667 | JR Z,44683 | |||
| 44669 | LD A,(IX+7) | alive? | ||
| 44672 | AND A | |||
| 44673 | JR NZ,44683 | |||
| 44675 | LD L,(IX+4) | yes: total += 2 x strength | ||
| 44678 | SLA L | |||
| 44680 | EX AF,AF' | |||
| 44681 | ADD A,L | |||
| 44682 | EX AF,AF' | |||
| 44683 | ADD IX,DE | |||
| 44685 | INC C | |||
| 44686 | DJNZ 44663 | |||
| 44688 | EX AF,AF' | RatingScore += the total | ||
| 44689 | LD C,A | |||
| 44690 | LD A,(40503) | |||
| 44693 | ADD A,C | |||
| 44694 | LD (40503),A | |||
| 44697 | RET | |||
| Prev: 44591 | Up: Map | Next: 44698 |