From d49d8b47648ec937d0c28493c6732628533ea3d2 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sat, 13 Nov 2021 23:58:08 -0500 Subject: [PATCH] stanek bitnode mult --- src/BitNode/BitNode.tsx | 2 +- src/CotMG/formulas/effect.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/BitNode/BitNode.tsx b/src/BitNode/BitNode.tsx index 8481f7a24..4b809c766 100644 --- a/src/BitNode/BitNode.tsx +++ b/src/BitNode/BitNode.tsx @@ -901,7 +901,7 @@ export function initBitNodeMultipliers(p: IPlayer): void { BitNodeMultipliers.BladeburnerRank = 0.1; BitNodeMultipliers.BladeburnerSkillCost = 5; - BitNodeMultipliers.StaneksGiftPowerMultiplier = 2; + BitNodeMultipliers.StaneksGiftPowerMultiplier = 1.2; BitNodeMultipliers.StaneksGiftExtraSize = 1; BitNodeMultipliers.GangSoftcap = 0.2; BitNodeMultipliers.CorporationSoftCap = 0.2; diff --git a/src/CotMG/formulas/effect.ts b/src/CotMG/formulas/effect.ts index 271629e3d..39b1aea89 100644 --- a/src/CotMG/formulas/effect.ts +++ b/src/CotMG/formulas/effect.ts @@ -1,3 +1,12 @@ +import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers"; + export function CalculateEffect(avgCharge: number, numCharge: number, power: number, boost: number): number { - return 1 + (Math.log(avgCharge + 1) / (Math.log(1.8) * 100)) * Math.pow((numCharge + 1) / 5, 0.07) * power * boost; + return ( + 1 + + (Math.log(avgCharge + 1) / (Math.log(1.8) * 100)) * + Math.pow((numCharge + 1) / 5, 0.07) * + power * + boost * + BitNodeMultipliers.StaneksGiftPowerMultiplier + ); }