mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
Merge PRs and fix issues
This commit is contained in:
@@ -2882,7 +2882,6 @@ function NetscriptFunctions(workerScript) {
|
||||
if (workerScript.checkingRam) {
|
||||
return updateStaticRam("createProgram", ramCost);
|
||||
}
|
||||
if (Player.bitNodeN != 4) {
|
||||
updateDynamicRam("createProgram", ramCost);
|
||||
if (Player.bitNodeN != 4) {
|
||||
if (!(hasSingularitySF && singularitySFLvl >= 3)) {
|
||||
@@ -2910,17 +2909,17 @@ function NetscriptFunctions(workerScript) {
|
||||
}
|
||||
}
|
||||
|
||||
if(p == null) {
|
||||
if (p == null) {
|
||||
workerScript.scriptRef.log("ERROR: createProgram() failed because the specified program does not exist: " + name);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(Player.hasProgram(p.name)) {
|
||||
if (Player.hasProgram(p.name)) {
|
||||
workerScript.scriptRef.log('ERROR: createProgram() failed because you already have the ' + p.name + ' program');
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!p.create.req()) {
|
||||
if (!p.create.req()) {
|
||||
workerScript.scriptRef.log("ERROR: createProgram() failed because hacking level is too low to create " + p.name + " (level " + p.create.level + " req)");
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user