Skip to content

Commit

Permalink
Add more unsellable shop items
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSamWitch committed Oct 15, 2024
1 parent 8cb4db0 commit 0700322
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/removeUnsellableShopItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ async function main() {

const shop = await ethers.getContractAt("Shop", SHOP_ADDRESS);

// Add unsellable items
const items = [
EstforConstants.INFUSED_ORICHALCUM_HELMET,
EstforConstants.INFUSED_ORICHALCUM_ARMOR,
Expand All @@ -29,9 +30,20 @@ async function main() {
EstforConstants.INFUSED_SCORCHING_CHAPS,
EstforConstants.INFUSED_SCORCHING_BRACERS,
EstforConstants.INFUSED_SCORCHING_BOOTS,
EstforConstants.ANNIV1_CHEST,
EstforConstants.ANNIV1_RING,
EstforConstants.ANNIV1_EGG_TIER1,
EstforConstants.ANNIV1_EGG_TIER2,
EstforConstants.ANNIV1_EGG_TIER3,
EstforConstants.ANNIV1_EGG_TIER4,
EstforConstants.ANNIV1_EGG_TIER5,
EstforConstants.ANNIV1_KEY,
];

await shop.removeUnsellableItems(items);
// Only works if not trying to sell anything
let tx = await shop.removeUnsellableItems(items);
await tx.wait();
await shop.addUnsellableItems(items);
}

main().catch((error) => {
Expand Down

0 comments on commit 0700322

Please sign in to comment.