mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
Added sf minus 1, exploits
This commit is contained in:
@@ -37,6 +37,7 @@ import { safetlyCreateUniqueServer } from "../../Server/ServerHelpers";
|
||||
import { Settings } from "../../Settings/Settings";
|
||||
import { SpecialServerIps, SpecialServerNames } from "../../Server/SpecialServerIps";
|
||||
import { applySourceFile } from "../../SourceFile/applySourceFile";
|
||||
import { applyExploit } from "../../Exploits/applyExploits";
|
||||
import { SourceFiles } from "../../SourceFile/SourceFiles";
|
||||
import { SourceFileFlags } from "../../SourceFile/SourceFileFlags";
|
||||
import { influenceStockThroughCompanyWork } from "../../StockMarket/PlayerInfluencing";
|
||||
@@ -1866,6 +1867,7 @@ export function reapplyAllSourceFiles() {
|
||||
}
|
||||
applySourceFile(this.sourceFiles[i]);
|
||||
}
|
||||
applyExploit();
|
||||
}
|
||||
|
||||
/*************** Check for Faction Invitations *************/
|
||||
@@ -2298,3 +2300,9 @@ export function gotoLocation(to) {
|
||||
export function canAccessResleeving() {
|
||||
return this.bitNodeN === 10 || (SourceFileFlags[10] > 0);
|
||||
}
|
||||
|
||||
export function giveExploit(exploit) {
|
||||
if(!this.exploits.includes(exploit)) {
|
||||
this.exploits.push(exploit);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user