fix bug with workForFaction

This commit is contained in:
Olivier Gagnon
2021-10-16 15:43:28 -04:00
parent 99c75baea0
commit 84a1d27b9a
5 changed files with 8 additions and 3 deletions

View File

@@ -516,6 +516,7 @@ export function resetWorkStatus(this: IPlayer, generalType?: string, group?: str
this.currentWorkFactionDescription = "";
this.createProgramName = "";
this.className = "";
this.workType = "";
}
export function processWorkEarnings(this: IPlayer, numCycles = 1): void {
@@ -883,6 +884,7 @@ export function startFactionFieldWork(this: IPlayer, router: IRouter, faction: F
}
export function startFactionSecurityWork(this: IPlayer, router: IRouter, faction: Faction): void {
console.log(faction);
this.resetWorkStatus(CONSTANTS.WorkTypeFaction, faction.name, CONSTANTS.FactionWorkSecurity);
this.workHackExpGainRate = 0.05 * this.hacking_exp_mult * BitNodeMultipliers.FactionWorkExpGain;