From 2316bf5b69bbe6bd96b51eebd0dc336c6c5d2a8f Mon Sep 17 00:00:00 2001 From: Caldwell <115591472+Caldwell-74@users.noreply.github.com> Date: Wed, 5 Jun 2024 03:20:43 +0200 Subject: [PATCH] BUGFIX: clamp bitnode mults (#1350) --- src/BitNode/BitNodeMultipliers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BitNode/BitNodeMultipliers.ts b/src/BitNode/BitNodeMultipliers.ts index eb2a98219..277b8dbe6 100644 --- a/src/BitNode/BitNodeMultipliers.ts +++ b/src/BitNode/BitNodeMultipliers.ts @@ -1,5 +1,5 @@ import { PartialRecord, getRecordEntries } from "../Types/Record"; - +import { clampNumber } from "../utils/helpers/clampNumber"; /** * Bitnode multipliers influence the difficulty of different aspects of the game. * Each Bitnode has a different theme/strategy to achieving the end goal, so these multipliers will can help drive the @@ -173,7 +173,7 @@ export class BitNodeMultipliers { CorporationDivisions = 1; constructor(a: PartialRecord = {}) { - for (const [key, value] of getRecordEntries(a)) this[key] = value; + for (const [key, value] of getRecordEntries(a)) this[key] = clampNumber(value); } }