Update StaneksGift.ts

This commit is contained in:
Thomas B 2022-03-22 08:38:28 -04:00 committed by GitHub
parent 8b8b098fb6
commit 5d2f2d4373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,14 +19,14 @@ export class StaneksGift implements IStaneksGift {
fragments: ActiveFragment[] = []; fragments: ActiveFragment[] = [];
baseSize(): number { baseSize(): number {
return Math.min(StanekConstants.BaseSize + BitNodeMultipliers.StaneksGiftExtraSize + Player.sourceFileLvl(13), StanekConstants.MaxSize); return StanekConstants.BaseSize + BitNodeMultipliers.StaneksGiftExtraSize + Player.sourceFileLvl(13)
} }
width(): number { width(): number {
return Math.floor(this.baseSize() / 2 + 1); return Math.min(Math.floor(this.baseSize() / 2 + 1),StanekConstants.MaxSize);
} }
height(): number { 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 { charge(player: IPlayer, af: ActiveFragment, threads: number): void {