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 //Home Upgrades
if (nMoney > ns.singularity.getUpgradeHomeRamCost()) { if (nMoney > ns.singularity.getUpgradeHomeRamCost()) {
let nHomeRAMUpgradeCost = ns.singularity.getUpgradeHomeRamCost();
ns.singularity.upgradeHomeRam(); 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()) { else if (nCores < 8 && nMoney > ns.singularity.getUpgradeHomeCoresCost()) {
ns.singularity.upgradeHomeCores(); ns.singularity.upgradeHomeCores();

View File

@@ -22,7 +22,7 @@ export async function main(ns) {
const sGrowScript = "RMgrow.js"; const sGrowScript = "RMgrow.js";
const sWeakenScript = "RMweaken.js"; const sWeakenScript = "RMweaken.js";
const nHackThreads = 5; //1 const nHackThreads = 50; //1
const nHackScriptRAM = 1.75; const nHackScriptRAM = 1.75;
const nGrowScriptRAM = 1.7; const nGrowScriptRAM = 1.7;

View File

@@ -1,4 +1,4 @@
{"setting":{ {"setting":{
"autoUpgrades":false, "autoUpgrades":true,
"autoPurchaseServers":true "autoPurchaseServers":true
}} }}