mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
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:
commit
0e26515c81
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user