Whenever StanekGift updated Sleeve's mult,
all mult were reset to default value (1.0 usually).
then stanek mult were merged.
but aug's mults never were.

=> Added a small loop to StanekGift updateMults() which reapply Aug's mult.
This commit is contained in:
borisflagell 2022-10-08 15:28:51 +03:00
parent 01f6c6cb7a
commit 08b6c7a177

@ -13,6 +13,7 @@ import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
import { Player } from "../Player";
import { AugmentationNames } from "../Augmentation/data/AugmentationNames";
import { defaultMultipliers, mergeMultipliers, Multipliers, scaleMultipliers } from "../PersonObjects/Multipliers";
import { StaticAugmentations } from "../Augmentation/StaticAugmentations";
export class StaneksGift extends BaseGift {
storedCycles = 0;
@ -216,6 +217,12 @@ export class StaneksGift extends BaseGift {
for (const sleeve of Player.sleeves) {
if (!sleeve.hasAugmentation(AugmentationNames.ZOE)) continue;
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.updateSkillLevels();
}