Skip to content

Commit

Permalink
fix: disable more museum
Browse files Browse the repository at this point in the history
  • Loading branch information
metalcupcake5 committed Nov 22, 2023
1 parent 54f0ca7 commit 833c2af
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion public/resources/ts/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ declare const items: {
candy_bag: (ItemSlot | Item | Backpack)[];
storage: (ItemSlot | Item | Backpack)[];
bingo_card: (ItemSlot | Item | Backpack)[];
museum: (ItemSlot | Item | Backpack)[];
//museum: (ItemSlot | Item | Backpack)[];
};

type StatName =
Expand Down
2 changes: 1 addition & 1 deletion public/resources/ts/stats-defer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const ALL_ITEMS = new Map(
items.storage,
items.hotm,
items.bingo_card,
items.museum,
//items.museum,
]
.flat()
.flatMap((item) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export async function getStats(
fishing_bag: items.fishing_bag,
potion_bag: items.potion_bag,
candy_inventory: items.candy_bag,
museum: [],
//museum: [],
},
output.currencies.bank,
{ cache: true, onlyNetworth: true, v2Endpoint: true }
Expand Down
8 changes: 4 additions & 4 deletions src/stats/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ export async function getItems(
output.hotm = hotm;
output.candy_bag = candy_bag;

const museum =
"museum" in profile ? await items.getMuseumItems(profile, customTextures, packs, options.cacheOnly) : [];
// const museum =
// "museum" in profile ? await items.getMuseumItems(profile, customTextures, packs, options.cacheOnly) : [];

output.museumItems = museum?.museumItems ?? [];
output.museum = museum?.museum ?? [];
// output.museumItems = museum?.museumItems ?? [];
// output.museum = museum?.museum ?? [];

output.bingo_card = await items.getBingoCard(paramBingo, options.cacheOnly);

Expand Down
2 changes: 1 addition & 1 deletion views/sections/stats/items/inventory.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</button>
<% } %>
<% if (items.museum.length > 0) { %>
<% if (items.museum && items.museum.length > 0) { %>
<button class="inventory-tab" data-inventory-type="museum">
<div class="inventory-tab-icon item-icon custom-icon" style="background-image: url(/head/438cf3f8e54afc3b3f91d20a49f324dca1486007fe545399055524c17941f4dc)"></div>
<div class="inventory-tab-name">Museum</div>
Expand Down

0 comments on commit 833c2af

Please sign in to comment.