From a57042276b9a718a50a900623cbdf72dfb283a62 Mon Sep 17 00:00:00 2001 From: Thomas B <79112289+waffleattack@users.noreply.github.com> Date: Mon, 21 Mar 2022 12:44:26 -0400 Subject: [PATCH 1/5] Cap Staneks Gift at 25x25 --- src/CotMG/StaneksGift.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CotMG/StaneksGift.ts b/src/CotMG/StaneksGift.ts index 2b9e1e1ef..2cb089a74 100644 --- a/src/CotMG/StaneksGift.ts +++ b/src/CotMG/StaneksGift.ts @@ -19,7 +19,7 @@ export class StaneksGift implements IStaneksGift { fragments: ActiveFragment[] = []; baseSize(): number { - return StanekConstants.BaseSize + BitNodeMultipliers.StaneksGiftExtraSize + Player.sourceFileLvl(13); + return Math.min(StanekConstants.BaseSize + BitNodeMultipliers.StaneksGiftExtraSize + Player.sourceFileLvl(13), StanekConstants.MaxSize); } width(): number { From 9381cb4a67c56fa61b2566b94157134f92f9d06e Mon Sep 17 00:00:00 2001 From: Thomas B <79112289+waffleattack@users.noreply.github.com> Date: Mon, 21 Mar 2022 12:46:38 -0400 Subject: [PATCH 2/5] Cap Stanek at 25x25 --- src/CotMG/data/Constants.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CotMG/data/Constants.ts b/src/CotMG/data/Constants.ts index 68a6f38ce..fa4a867b7 100644 --- a/src/CotMG/data/Constants.ts +++ b/src/CotMG/data/Constants.ts @@ -1,7 +1,9 @@ export const StanekConstants: { RAMBonus: number; BaseSize: number; + MaxSize: number; } = { RAMBonus: 0.1, BaseSize: 9, + MaxSize: 25 }; From 67ca1fc3e56ff69b1733b15594fc22b41b99639a Mon Sep 17 00:00:00 2001 From: Thomas B <79112289+waffleattack@users.noreply.github.com> Date: Tue, 22 Mar 2022 08:35:22 -0400 Subject: [PATCH 3/5] Update Constants.ts --- src/CotMG/data/Constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CotMG/data/Constants.ts b/src/CotMG/data/Constants.ts index fa4a867b7..cb9fdd000 100644 --- a/src/CotMG/data/Constants.ts +++ b/src/CotMG/data/Constants.ts @@ -5,5 +5,5 @@ export const StanekConstants: { } = { RAMBonus: 0.1, BaseSize: 9, - MaxSize: 25 + MaxSize: 50 }; From 8b8b098fb66459031315591c6219f861faa13b0a Mon Sep 17 00:00:00 2001 From: Thomas B <79112289+waffleattack@users.noreply.github.com> Date: Tue, 22 Mar 2022 08:37:11 -0400 Subject: [PATCH 4/5] Update Constants.ts --- src/CotMG/data/Constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CotMG/data/Constants.ts b/src/CotMG/data/Constants.ts index cb9fdd000..fa4a867b7 100644 --- a/src/CotMG/data/Constants.ts +++ b/src/CotMG/data/Constants.ts @@ -5,5 +5,5 @@ export const StanekConstants: { } = { RAMBonus: 0.1, BaseSize: 9, - MaxSize: 50 + MaxSize: 25 }; From 5d2f2d4373a255c91a7d99b5c51ac81b11a7fe05 Mon Sep 17 00:00:00 2001 From: Thomas B <79112289+waffleattack@users.noreply.github.com> Date: Tue, 22 Mar 2022 08:38:28 -0400 Subject: [PATCH 5/5] Update StaneksGift.ts --- src/CotMG/StaneksGift.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CotMG/StaneksGift.ts b/src/CotMG/StaneksGift.ts index 2cb089a74..acca05d6d 100644 --- a/src/CotMG/StaneksGift.ts +++ b/src/CotMG/StaneksGift.ts @@ -19,14 +19,14 @@ export class StaneksGift implements IStaneksGift { fragments: ActiveFragment[] = []; baseSize(): number { - return Math.min(StanekConstants.BaseSize + BitNodeMultipliers.StaneksGiftExtraSize + Player.sourceFileLvl(13), StanekConstants.MaxSize); + return StanekConstants.BaseSize + BitNodeMultipliers.StaneksGiftExtraSize + Player.sourceFileLvl(13) } width(): number { - return Math.floor(this.baseSize() / 2 + 1); + return Math.min(Math.floor(this.baseSize() / 2 + 1),StanekConstants.MaxSize); } height(): number { - return Math.floor(this.baseSize() / 2 + 0.6); + return Math.min(Math.floor(this.baseSize() / 2 + 0.6),StanekConstants.MaxSize); } charge(player: IPlayer, af: ActiveFragment, threads: number): void {