BUGFIX: Sleeves can earn exp and purchase augmentations when enabling disableSleeveExpAndAugmentation (#2467)

This commit is contained in:
catloversg
2026-02-05 19:47:24 +07:00
committed by GitHub
parent 77cc582bf9
commit 796bef81b3
8 changed files with 125 additions and 20 deletions
+1 -1
View File
@@ -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;