mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
Commented Fixes
This commit is contained in:
parent
f6ffe5b5be
commit
db9c3193f7
@ -9,4 +9,4 @@ upgradeHomeRam() Netscript Function
|
|||||||
|
|
||||||
This function will upgrade amount of CORES on the player's home computer. The cost is the same as if you were to do it manually.
|
This function will upgrade amount of CORES on the player's home computer. The cost is the same as if you were to do it manually.
|
||||||
|
|
||||||
This function will return true if the player's home computer RAM is successfully upgraded, and false otherwise.
|
This function will return true if the player's home computer core count is successfully upgraded, and false otherwise.
|
||||||
|
@ -3284,7 +3284,7 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
// Check if we're at max CORES
|
// Check if we're at max CORES
|
||||||
const homeComputer = Player.getHomeComputer();
|
const homeComputer = Player.getHomeComputer();
|
||||||
if (homeComputer.cpuCores >=8) {
|
if (homeComputer.cpuCores >=8) {
|
||||||
workerScript.log("upgradeHomeCores", `Your home computer is at max CORES.`);
|
workerScript.log("upgradeHomeCores", `Your home computer is at max cores.`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3294,7 +3294,7 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
homeComputer.cpuCores *= 2;
|
homeComputer.cpuCores +=1;
|
||||||
Player.loseMoney(cost);
|
Player.loseMoney(cost);
|
||||||
|
|
||||||
Player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain);
|
Player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain);
|
||||||
|
Loading…
Reference in New Issue
Block a user