mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 22:07:06 +02:00
BUGFIX: Sleeves can earn exp and purchase augmentations when enabling disableSleeveExpAndAugmentation (#2467)
This commit is contained in:
@@ -21,7 +21,7 @@ import { CompanyPosition } from "../Company/CompanyPosition";
|
||||
import { isMember } from "../utils/EnumHelper";
|
||||
import { getMultiplierFromCharisma } from "../DarkNet/effects/effects";
|
||||
|
||||
function processWorkStats(person: IPerson, workStats: WorkStats): WorkStats {
|
||||
export function processWorkStats(person: IPerson, workStats: WorkStats): WorkStats {
|
||||
// "person" can be a normal object that the player passes to NS APIs, so we cannot use `person instanceof Sleeve`.
|
||||
if (Player.bitNodeOptions.disableSleeveExpAndAugmentation && "shock" in person) {
|
||||
workStats.hackExp = 0;
|
||||
|
||||
Reference in New Issue
Block a user