diff --git a/src/CotMG/StaneksGift.ts b/src/CotMG/StaneksGift.ts index 2b9e1e1ef..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 StanekConstants.BaseSize + BitNodeMultipliers.StaneksGiftExtraSize + Player.sourceFileLvl(13); + 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 { 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 };