PROGRAMS: Change flight.exe to easily display unmet requirements (#939)

This commit is contained in:
TheAimMan 2024-01-07 08:12:16 -05:00 committed by GitHub
parent 1b03618555
commit dd9ace7891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -290,9 +290,21 @@ export const Programs: Record<CompletedProgramName, Program> = {
const fulfilled = const fulfilled =
Player.augmentations.length >= numAugReq && Player.money > 1e11 && Player.skills.hacking >= 2500; Player.augmentations.length >= numAugReq && Player.money > 1e11 && Player.skills.hacking >= 2500;
if (!fulfilled) { if (!fulfilled) {
Terminal.print(`Augmentations: ${Player.augmentations.length} / ${numAugReq}`); if (Player.augmentations.length >= numAugReq) {
Terminal.print(`Money: ${formatMoney(Player.money)} / $100b`); Terminal.print(`[x] Augmentations: ${Player.augmentations.length} / ${numAugReq}`);
Terminal.print(`Hacking skill: ${Player.skills.hacking} / 2500`); } else {
Terminal.print(`[ ] Augmentations: ${Player.augmentations.length} / ${numAugReq}`);
}
if (Player.money > 1e11) {
Terminal.print(`[x] Money: ${formatMoney(Player.money)} / $100b`);
} else {
Terminal.print(`[ ] Money: ${formatMoney(Player.money)} / $100b`);
}
if (Player.skills.hacking >= 2500) {
Terminal.print(`[x] Hacking skill: ${Player.skills.hacking} / 2500`);
} else {
Terminal.print(`[ ] Hacking skill: ${Player.skills.hacking} / 2500`);
}
return; return;
} }