stanek bitnode mult

This commit is contained in:
Olivier Gagnon 2021-11-13 23:58:08 -05:00
parent 918f733d52
commit d49d8b4764
2 changed files with 11 additions and 2 deletions

@ -901,7 +901,7 @@ export function initBitNodeMultipliers(p: IPlayer): void {
BitNodeMultipliers.BladeburnerRank = 0.1; BitNodeMultipliers.BladeburnerRank = 0.1;
BitNodeMultipliers.BladeburnerSkillCost = 5; BitNodeMultipliers.BladeburnerSkillCost = 5;
BitNodeMultipliers.StaneksGiftPowerMultiplier = 2; BitNodeMultipliers.StaneksGiftPowerMultiplier = 1.2;
BitNodeMultipliers.StaneksGiftExtraSize = 1; BitNodeMultipliers.StaneksGiftExtraSize = 1;
BitNodeMultipliers.GangSoftcap = 0.2; BitNodeMultipliers.GangSoftcap = 0.2;
BitNodeMultipliers.CorporationSoftCap = 0.2; BitNodeMultipliers.CorporationSoftCap = 0.2;

@ -1,3 +1,12 @@
import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers";
export function CalculateEffect(avgCharge: number, numCharge: number, power: number, boost: number): number { 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
);
} }