mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-01 19:07:36 +01:00
Fixed bugs with job requirement tooltips not appearing
This commit is contained in:
parent
840df3087f
commit
920d3d3f36
@ -8,6 +8,7 @@ import { IMap } from "../../types";
|
|||||||
const AllSoftwarePositions: IMap<boolean> = {};
|
const AllSoftwarePositions: IMap<boolean> = {};
|
||||||
const AllITPositions: IMap<boolean> = {};
|
const AllITPositions: IMap<boolean> = {};
|
||||||
const AllNetworkEngineerPositions: IMap<boolean> = {};
|
const AllNetworkEngineerPositions: IMap<boolean> = {};
|
||||||
|
const SecurityEngineerPositions: IMap<boolean> = {};
|
||||||
const AllTechnologyPositions: IMap<boolean> = {};
|
const AllTechnologyPositions: IMap<boolean> = {};
|
||||||
const AllBusinessPositions: IMap<boolean> = {};
|
const AllBusinessPositions: IMap<boolean> = {};
|
||||||
const AllAgentPositions: IMap<boolean> = {};
|
const AllAgentPositions: IMap<boolean> = {};
|
||||||
@ -40,6 +41,7 @@ posNames.NetworkEngineerCompanyPositions.forEach((e) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
AllTechnologyPositions[posNames.SecurityEngineerCompanyPositions[0]] = true;
|
AllTechnologyPositions[posNames.SecurityEngineerCompanyPositions[0]] = true;
|
||||||
|
SecurityEngineerPositions[posNames.SecurityEngineerCompanyPositions[0]] = true;
|
||||||
|
|
||||||
posNames.BusinessCompanyPositions.forEach((e) => {
|
posNames.BusinessCompanyPositions.forEach((e) => {
|
||||||
AllBusinessPositions[e] = true;
|
AllBusinessPositions[e] = true;
|
||||||
@ -373,6 +375,7 @@ export const companiesMetadata: IConstructorParams[] = [
|
|||||||
companyPositions: Object.assign({},
|
companyPositions: Object.assign({},
|
||||||
SoftwarePositionsUpToHeadOfEngineering,
|
SoftwarePositionsUpToHeadOfEngineering,
|
||||||
AllNetworkEngineerPositions,
|
AllNetworkEngineerPositions,
|
||||||
|
SecurityEngineerPositions,
|
||||||
AllITPositions,
|
AllITPositions,
|
||||||
AllSecurityPositions,
|
AllSecurityPositions,
|
||||||
AllAgentPositions
|
AllAgentPositions
|
||||||
@ -387,6 +390,7 @@ export const companiesMetadata: IConstructorParams[] = [
|
|||||||
companyPositions: Object.assign({},
|
companyPositions: Object.assign({},
|
||||||
SoftwarePositionsUpToHeadOfEngineering,
|
SoftwarePositionsUpToHeadOfEngineering,
|
||||||
AllNetworkEngineerPositions,
|
AllNetworkEngineerPositions,
|
||||||
|
SecurityEngineerPositions,
|
||||||
AllITPositions,
|
AllITPositions,
|
||||||
AllSecurityPositions,
|
AllSecurityPositions,
|
||||||
AllAgentPositions
|
AllAgentPositions
|
||||||
@ -492,8 +496,9 @@ export const companiesMetadata: IConstructorParams[] = [
|
|||||||
info: "",
|
info: "",
|
||||||
companyPositions: Object.assign({},
|
companyPositions: Object.assign({},
|
||||||
AllTechnologyPositions,
|
AllTechnologyPositions,
|
||||||
|
AllSoftwareConsultantPositions,
|
||||||
AllAgentPositions,
|
AllAgentPositions,
|
||||||
AllSecurityPositions
|
AllSecurityPositions,
|
||||||
),
|
),
|
||||||
expMultiplier: 1.2,
|
expMultiplier: 1.2,
|
||||||
salaryMultiplier: 1.2,
|
salaryMultiplier: 1.2,
|
||||||
|
@ -73,9 +73,6 @@ import {arrayToString} from "../utils/helpers/array
|
|||||||
import {createRandomIp} from "../utils/IPAddress";
|
import {createRandomIp} from "../utils/IPAddress";
|
||||||
import {formatNumber, isHTML} from "../utils/StringHelperFunctions";
|
import {formatNumber, isHTML} from "../utils/StringHelperFunctions";
|
||||||
import {isString} from "../utils/helpers/isString";
|
import {isString} from "../utils/helpers/isString";
|
||||||
import {yesNoBoxClose, yesNoBoxGetYesButton,
|
|
||||||
yesNoBoxGetNoButton, yesNoBoxCreate,
|
|
||||||
yesNoBoxOpen} from "../utils/YesNoBox";
|
|
||||||
|
|
||||||
import { createElement } from "../utils/uiHelpers/createElement";
|
import { createElement } from "../utils/uiHelpers/createElement";
|
||||||
import { createPopup } from "../utils/uiHelpers/createPopup";
|
import { createPopup } from "../utils/uiHelpers/createPopup";
|
||||||
@ -2475,10 +2472,6 @@ function NetscriptFunctions(workerScript) {
|
|||||||
},
|
},
|
||||||
prompt : function(txt) {
|
prompt : function(txt) {
|
||||||
if (workerScript.checkingRam) {return 0;}
|
if (workerScript.checkingRam) {return 0;}
|
||||||
if (yesNoBoxOpen) {
|
|
||||||
workerScript.scriptRef.log("ERROR: confirm() failed because a pop-up dialog box is already open");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!isString(txt)) {txt = String(txt);}
|
if (!isString(txt)) {txt = String(txt);}
|
||||||
|
|
||||||
// The id for this popup will consist of the first 20 characters of the prompt string..
|
// The id for this popup will consist of the first 20 characters of the prompt string..
|
||||||
|
@ -652,10 +652,12 @@ function setSleeveTask(sleeve: Sleeve, elems: ISleeveUIElems): boolean {
|
|||||||
res = sleeve.workoutAtGym(playerRef!, detailValue2, detailValue);
|
res = sleeve.workoutAtGym(playerRef!, detailValue2, detailValue);
|
||||||
break;
|
break;
|
||||||
case "Shock Recovery":
|
case "Shock Recovery":
|
||||||
|
sleeve.finishTask(playerRef!);
|
||||||
sleeve.currentTask = SleeveTaskType.Recovery;
|
sleeve.currentTask = SleeveTaskType.Recovery;
|
||||||
res = true;
|
res = true;
|
||||||
break;
|
break;
|
||||||
case "Synchronize":
|
case "Synchronize":
|
||||||
|
sleeve.finishTask(playerRef!);
|
||||||
sleeve.currentTask = SleeveTaskType.Sync;
|
sleeve.currentTask = SleeveTaskType.Sync;
|
||||||
res = true;
|
res = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user