From 010a4f1aa3c9bfdc93710d42fa761ba3119466ce Mon Sep 17 00:00:00 2001 From: nickofolas <60761231+nickofolas@users.noreply.github.com> Date: Mon, 21 Mar 2022 14:30:03 -0500 Subject: [PATCH] Fix Entropy application after grafting --- src/PersonObjects/Grafting/EntropyAccumulation.ts | 2 +- src/PersonObjects/Player/PlayerObjectAugmentationMethods.ts | 2 +- src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PersonObjects/Grafting/EntropyAccumulation.ts b/src/PersonObjects/Grafting/EntropyAccumulation.ts index e894127f7..4ea0ea169 100644 --- a/src/PersonObjects/Grafting/EntropyAccumulation.ts +++ b/src/PersonObjects/Grafting/EntropyAccumulation.ts @@ -3,7 +3,7 @@ import { CONSTANTS } from "../../Constants"; import { IPlayer } from "../IPlayer"; -export const applyEntropy = (player: IPlayer, stacks = 1): IMap => { +export const calculateEntropy = (player: IPlayer, stacks = 1): IMap => { const multipliers: IMap = { hacking_chance_mult: player.hacking_chance_mult, hacking_speed_mult: player.hacking_speed_mult, diff --git a/src/PersonObjects/Player/PlayerObjectAugmentationMethods.ts b/src/PersonObjects/Player/PlayerObjectAugmentationMethods.ts index 9de4cdb03..999689eef 100644 --- a/src/PersonObjects/Player/PlayerObjectAugmentationMethods.ts +++ b/src/PersonObjects/Player/PlayerObjectAugmentationMethods.ts @@ -5,7 +5,7 @@ import { IPlayer } from "../IPlayer"; import { Augmentation } from "../../Augmentation/Augmentation"; -import { applyEntropy as calculateEntropy } from "../Grafting/EntropyAccumulation"; +import { calculateEntropy } from "../Grafting/EntropyAccumulation"; export function hasAugmentation(this: IPlayer, aug: string | Augmentation, installed = false): boolean { const augName: string = aug instanceof Augmentation ? aug.name : aug; diff --git a/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx b/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx index 30d7a4731..60384f82a 100644 --- a/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx +++ b/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx @@ -1375,7 +1375,7 @@ export function finishCraftAugmentationWork(this: IPlayer, cancelled: boolean): applyAugmentation(Augmentations[augName]); this.entropyStacks += 1; - this.applyEntropy(); + this.applyEntropy(this.entropyStacks); } else { dialogBoxCreate(`You cancelled the crafting of ${augName}.
Your money was not returned to you.`) }