CODEBASE: Fix lint errors 2 (#1756)

This commit is contained in:
catloversg
2024-11-07 14:09:11 +07:00
committed by GitHub
parent e3c10e9f0f
commit 36c143b687
48 changed files with 267 additions and 146 deletions
+3 -3
View File
@@ -7,17 +7,17 @@ export let staneksGift = new StaneksGift();
export function loadStaneksGift(saveString: string): void {
if (saveString) {
staneksGift = JSON.parse(saveString, Reviver);
staneksGift = JSON.parse(saveString, Reviver) as StaneksGift;
} else {
staneksGift = new StaneksGift();
}
}
export function zeros(width: number, height: number): number[][] {
const array = [];
const array: number[][] = [];
for (let i = 0; i < width; ++i) {
array.push(Array(height).fill(0));
array.push(Array<number>(height).fill(0));
}
return array;
-3
View File
@@ -18,9 +18,6 @@ export class StaneksGift extends BaseGift {
isBonusCharging = false;
justCharged = true;
storedCycles = 0;
constructor() {
super();
}
baseSize(): number {
return StanekConstants.BaseSize + currentNodeMults.StaneksGiftExtraSize + Player.activeSourceFileLvl(13);