BUGFIX: Format money requirement in fl1ght.exe (#1061)

This commit is contained in:
LJ 2024-01-24 23:45:39 -07:00 committed by GitHub
parent cb7c75a3ce
commit 05295598a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -288,17 +288,17 @@ export const Programs: Record<CompletedProgramName, Program> = {
run: (): void => {
const numAugReq = currentNodeMults.DaedalusAugsRequirement;
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 (Player.augmentations.length >= numAugReq) {
Terminal.print(`[x] Augmentations: ${Player.augmentations.length} / ${numAugReq}`);
} else {
Terminal.print(`[ ] Augmentations: ${Player.augmentations.length} / ${numAugReq}`);
}
if (Player.money > 1e11) {
Terminal.print(`[x] Money: ${formatMoney(Player.money)} / $100b`);
if (Player.money >= 1e11) {
Terminal.print(`[x] Money: ${formatMoney(Player.money)} / ${formatMoney(1e11)}`);
} else {
Terminal.print(`[ ] Money: ${formatMoney(Player.money)} / $100b`);
Terminal.print(`[ ] Money: ${formatMoney(Player.money)} / ${formatMoney(1e11)}`);
}
if (Player.skills.hacking >= 2500) {
Terminal.print(`[x] Hacking skill: ${Player.skills.hacking} / 2500`);