Skip to content

Commit

Permalink
fix lint issues and bump version to 3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistonight committed Oct 27, 2023
1 parent e1a690d commit 9f9b55f
Show file tree
Hide file tree
Showing 7 changed files with 502 additions and 498 deletions.
988 changes: 496 additions & 492 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "botw-ist",
"version": "3.1.3",
"version": "3.1.4",
"homepage": "https://ist.itntpiston.app/",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/core/inventory/Slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Slots {

// Add something to inventory in game
// returns the added slot ref, or undefined if no new slot is added
public add(stack: ItemStack, reloading: boolean, mCount: number | null, flags: GameFlags, listHeadsInit?: Boolean): Ref<ItemStack> | undefined {
public add(stack: ItemStack, reloading: boolean, mCount: number | null, flags: GameFlags, listHeadsInit?: boolean): Ref<ItemStack> | undefined {
return add(this.core, stack, reloading, mCount, flags, listHeadsInit);
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/inventory/SlotsCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class SlotsCore {
});
}

public findFirstTab(type: ItemType, listHeadsInit: Boolean): [Ref<ItemStack> | undefined, number] {
public findFirstTab(type: ItemType, listHeadsInit: boolean): [Ref<ItemStack> | undefined, number] {
// figure out the tabs first
const tabArray: [ItemTab, number][] = [];
const tabAdded = new Set();
Expand Down
2 changes: 1 addition & 1 deletion src/core/inventory/VisibleInventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class VisibleInventory implements DisplayableInventory{
// data is empty, which causes de-dupe checks to always be bypassed. Instead of simulating mListHeads
// fully, we just indicate whether to pretend tabs are empty or not.
// https://discord.com/channels/872350971383140422/1000992154140811325/1131656653561925824
private listHeadsInit: Boolean = false;
private listHeadsInit = false;
constructor(slots: Slots){
this.slots = slots;
this.offset = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/core/inventory/add.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,6 @@ describe("core/inventory/add", ()=>{
expect(addedSlot).toBe(undefined);
expect(slots.getView()).toEqualItemStacks(stacks);
});
})
});
});
});
2 changes: 1 addition & 1 deletion src/core/inventory/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const add = (
reloading: boolean,
mCount: number | null,
flags: GameFlags,
listHeadsInit?: Boolean
listHeadsInit?: boolean
): Ref<ItemStack> | undefined => {
if(mCount === null){
mCount = core.length;
Expand Down

0 comments on commit 9f9b55f

Please sign in to comment.