mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Update StaneksGift.ts
This commit is contained in:
parent
8b8b098fb6
commit
5d2f2d4373
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user