Merge pull request #4213 from borisflagell/SleeveZOE

STANEK: Reapply aug's multiplier to sleeve when applying Stanek gift to them
This commit is contained in:
hydroflame 2022-10-09 00:25:52 -04:00 committed by GitHub
commit 0e26515c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,7 @@ import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
import { Player } from "../Player"; import { Player } from "../Player";
import { AugmentationNames } from "../Augmentation/data/AugmentationNames"; import { AugmentationNames } from "../Augmentation/data/AugmentationNames";
import { defaultMultipliers, mergeMultipliers, Multipliers, scaleMultipliers } from "../PersonObjects/Multipliers"; import { defaultMultipliers, mergeMultipliers, Multipliers, scaleMultipliers } from "../PersonObjects/Multipliers";
import { StaticAugmentations } from "../Augmentation/StaticAugmentations";
export class StaneksGift extends BaseGift { export class StaneksGift extends BaseGift {
storedCycles = 0; storedCycles = 0;
@ -216,6 +217,12 @@ export class StaneksGift extends BaseGift {
for (const sleeve of Player.sleeves) { for (const sleeve of Player.sleeves) {
if (!sleeve.hasAugmentation(AugmentationNames.ZOE)) continue; if (!sleeve.hasAugmentation(AugmentationNames.ZOE)) continue;
sleeve.resetMultipliers(); sleeve.resetMultipliers();
//reapplying augmentation's multiplier
for (let i = 0; i < sleeve.augmentations.length; ++i) {
const aug = StaticAugmentations[sleeve.augmentations[i].name];
sleeve.applyAugmentation(aug);
}
//applying stanek multiplier
sleeve.mults = mergeMultipliers(sleeve.mults, sleeveMults); sleeve.mults = mergeMultipliers(sleeve.mults, sleeveMults);
sleeve.updateSkillLevels(); sleeve.updateSkillLevels();
} }