mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 17:23:00 +02:00
remove hacking missions
This commit is contained in:
@@ -98,7 +98,6 @@ import { Terminal } from "./Terminal";
|
||||
import { calculateSkill, calculateExp } from "./PersonObjects/formulas/skill";
|
||||
|
||||
import { Message } from "./Message/Message";
|
||||
import { inMission } from "./Missions";
|
||||
import { Player } from "./Player";
|
||||
import { Programs } from "./Programs/Programs";
|
||||
import { Script } from "./Script/Script";
|
||||
@@ -2965,10 +2964,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
universityCourse: function (universityName: any, className: any): any {
|
||||
updateDynamicRam("universityCourse", getRamCost("universityCourse"));
|
||||
checkSingularityAccess("universityCourse", 1);
|
||||
if (inMission) {
|
||||
workerScript.log("universityCourse", "You are in the middle of a mission.");
|
||||
return;
|
||||
}
|
||||
if (Player.isWorking) {
|
||||
const txt = Player.singularityStopWork();
|
||||
workerScript.log("universityCourse", txt);
|
||||
@@ -3049,10 +3044,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
gymWorkout: function (gymName: any, stat: any): any {
|
||||
updateDynamicRam("gymWorkout", getRamCost("gymWorkout"));
|
||||
checkSingularityAccess("gymWorkout", 1);
|
||||
if (inMission) {
|
||||
workerScript.log("gymWorkout", "You are in the middle of a mission.");
|
||||
return;
|
||||
}
|
||||
if (Player.isWorking) {
|
||||
const txt = Player.singularityStopWork();
|
||||
workerScript.log("gymWorkout", txt);
|
||||
@@ -3486,7 +3477,7 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
isBusy: function (): any {
|
||||
updateDynamicRam("isBusy", getRamCost("isBusy"));
|
||||
checkSingularityAccess("isBusy", 1);
|
||||
return Player.isWorking || inMission;
|
||||
return Player.isWorking;
|
||||
},
|
||||
stopAction: function (): any {
|
||||
updateDynamicRam("stopAction", getRamCost("stopAction"));
|
||||
@@ -3553,12 +3544,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Cant work while in a mission
|
||||
if (inMission) {
|
||||
workerScript.log("workForCompany", "You are in the middle of a mission.");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check to make sure company position data is valid
|
||||
const companyPositionName = Player.jobs[companyName];
|
||||
const companyPosition = CompanyPositions[companyPositionName];
|
||||
@@ -3708,11 +3693,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
return;
|
||||
}
|
||||
|
||||
if (inMission) {
|
||||
workerScript.log("workForFaction", "You are in the middle of a mission.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Player.factions.includes(name)) {
|
||||
workerScript.log("workForFaction", `You are not a member of '${name}'`);
|
||||
return false;
|
||||
@@ -3900,10 +3880,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
updateDynamicRam("createProgram", getRamCost("createProgram"));
|
||||
checkSingularityAccess("createProgram", 3);
|
||||
|
||||
if (inMission) {
|
||||
workerScript.log("createProgram", "You are in the middle of a mission.");
|
||||
return;
|
||||
}
|
||||
if (Player.isWorking) {
|
||||
const txt = Player.singularityStopWork();
|
||||
workerScript.log("createProgram", txt);
|
||||
@@ -3946,10 +3922,7 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
commitCrime: function (crimeRoughName: any): any {
|
||||
updateDynamicRam("commitCrime", getRamCost("commitCrime"));
|
||||
checkSingularityAccess("commitCrime", 3);
|
||||
if (inMission) {
|
||||
workerScript.log("commitCrime", "You are in the middle of a mission.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (Player.isWorking) {
|
||||
const txt = Player.singularityStopWork();
|
||||
workerScript.log("commitCrime", txt);
|
||||
|
||||
Reference in New Issue
Block a user