second try

This commit is contained in:
2024-10-06 09:30:35 +02:00
parent 3cf9484442
commit fd61cb72e1
3 changed files with 4 additions and 3 deletions

View File

@@ -103,8 +103,9 @@ export async function main(ns) {
//Home Upgrades
if (nMoney > ns.singularity.getUpgradeHomeRamCost()) {
let nHomeRAMUpgradeCost = ns.singularity.getUpgradeHomeRamCost();
ns.singularity.upgradeHomeRam();
ns.tprint(cCyan + "Upgraded home RAM" + cReset);
ns.tprint(cCyan + "Upgraded home RAM to " + (nHomeMaxRAM*2) + " for " + nHomeRAMUpgradeCost + cReset);
}
else if (nCores < 8 && nMoney > ns.singularity.getUpgradeHomeCoresCost()) {
ns.singularity.upgradeHomeCores();