Skip to content

Commit 33bf923

Browse files
committed
add new bgs
1 parent b50fba4 commit 33bf923

31 files changed

+832
-45
lines changed

data/itemTypes/itemTypes.ts

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9384,6 +9384,126 @@ export const itemTypes: ItemTypeInput[] = [
93849384
experienceBonus: 0,
93859385
kinshipBonus: 0,
93869386
},
9387+
{
9388+
svgId: 421,
9389+
name: "Base1 BG",
9390+
setId: [],
9391+
author: "xibot",
9392+
description: "",
9393+
dimensions: { x: 0, y: 0, width: 64, height: 64 },
9394+
allowedCollaterals: [],
9395+
minLevel: 1,
9396+
ghstPrice: 5,
9397+
maxQuantity: 1000,
9398+
traitModifiers: [0, 0, 0, 0, 0, 0],
9399+
canPurchaseWithGhst: false,
9400+
slotPositions: "background",
9401+
category: 0,
9402+
canBeTransferred: false,
9403+
totalQuantity: 0,
9404+
experienceBonus: 0,
9405+
kinshipBonus: 0,
9406+
},
9407+
{
9408+
svgId: 422,
9409+
name: "Base2 BG",
9410+
setId: [],
9411+
author: "xibot",
9412+
description: "",
9413+
dimensions: { x: 0, y: 0, width: 64, height: 64 },
9414+
allowedCollaterals: [],
9415+
minLevel: 1,
9416+
ghstPrice: 5,
9417+
maxQuantity: 1000,
9418+
traitModifiers: [0, 0, 0, 0, 0, 0],
9419+
canPurchaseWithGhst: false,
9420+
slotPositions: "background",
9421+
category: 0,
9422+
canBeTransferred: false,
9423+
totalQuantity: 0,
9424+
experienceBonus: 0,
9425+
kinshipBonus: 0,
9426+
},
9427+
{
9428+
svgId: 423,
9429+
name: "Og Beach BG",
9430+
setId: [],
9431+
author: "xibot",
9432+
description: "",
9433+
dimensions: { x: 0, y: 0, width: 64, height: 64 },
9434+
allowedCollaterals: [],
9435+
minLevel: 1,
9436+
ghstPrice: 5,
9437+
maxQuantity: 1000,
9438+
traitModifiers: [0, 0, 0, 0, 0, 0],
9439+
canPurchaseWithGhst: false,
9440+
slotPositions: "background",
9441+
category: 0,
9442+
canBeTransferred: false,
9443+
totalQuantity: 0,
9444+
experienceBonus: 0,
9445+
kinshipBonus: 0,
9446+
},
9447+
{
9448+
svgId: 424,
9449+
name: "Og Farmer BG",
9450+
setId: [],
9451+
author: "xibot",
9452+
description: "",
9453+
dimensions: { x: 0, y: 0, width: 64, height: 64 },
9454+
allowedCollaterals: [],
9455+
minLevel: 1,
9456+
ghstPrice: 5,
9457+
maxQuantity: 1000,
9458+
traitModifiers: [0, 0, 0, 0, 0, 0],
9459+
canPurchaseWithGhst: false,
9460+
slotPositions: "background",
9461+
category: 0,
9462+
canBeTransferred: false,
9463+
totalQuantity: 0,
9464+
experienceBonus: 0,
9465+
kinshipBonus: 0,
9466+
},
9467+
{
9468+
svgId: 425,
9469+
name: "Og Vaporwave BG",
9470+
setId: [],
9471+
author: "xibot",
9472+
description: "",
9473+
dimensions: { x: 0, y: 0, width: 64, height: 64 },
9474+
allowedCollaterals: [],
9475+
minLevel: 1,
9476+
ghstPrice: 5,
9477+
maxQuantity: 1000,
9478+
traitModifiers: [0, 0, 0, 0, 0, 0],
9479+
canPurchaseWithGhst: false,
9480+
slotPositions: "background",
9481+
category: 0,
9482+
canBeTransferred: false,
9483+
totalQuantity: 0,
9484+
experienceBonus: 0,
9485+
kinshipBonus: 0,
9486+
},
9487+
{
9488+
svgId: 426,
9489+
name: "Og Wizard BG",
9490+
setId: [],
9491+
author: "xibot",
9492+
description: "",
9493+
dimensions: { x: 0, y: 0, width: 64, height: 64 },
9494+
allowedCollaterals: [],
9495+
minLevel: 1,
9496+
ghstPrice: 5,
9497+
maxQuantity: 1000,
9498+
traitModifiers: [0, 0, 0, 0, 0, 0],
9499+
canPurchaseWithGhst: false,
9500+
slotPositions: "background",
9501+
category: 0,
9502+
canBeTransferred: false,
9503+
totalQuantity: 0,
9504+
experienceBonus: 0,
9505+
kinshipBonus: 0,
9506+
},
93879507
];
93889508

93899509
export type { ItemTypeInput } from "../../scripts/itemTypeHelpers";

scripts/itemTypeHelpers.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,10 @@ export function calculateRarityScoreModifier(maxQuantity: number): number {
442442
return 0;
443443
}
444444

445-
//exclude some tems from traitBooster checklist
446-
const excludedItems = [0, 26, 100, 105, 126, 127, 128, 129, 210];
445+
//exclude some items from traitBooster checklist
446+
const excludedItems = [
447+
0, 26, 100, 105, 126, 127, 128, 129, 210, 421, 422, 423, 424, 425, 426,
448+
];
447449

448450
export function getItemTypes(
449451
itemTypes: ItemTypeInputNew[],

scripts/newWearableChecklist.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ async function verifySleeveSvgsOnchain(
298298

299299
async function verifyItemBalances(
300300
itemIds: number[],
301-
hre: any
301+
hre: any,
302+
recipient: string
302303
): Promise<{ verified: number[]; missing: number[] }> {
303304
const verified: number[] = [];
304305
const missing: number[] = [];
@@ -313,9 +314,7 @@ async function verifyItemBalances(
313314
signer
314315
);
315316

316-
console.log(
317-
`🔍 Checking item balances for forge diamond: ${c.forgeDiamond}`
318-
);
317+
console.log(`🔍 Checking item balances for recipient: ${recipient}`);
319318

320319
for (const itemId of itemIds) {
321320
try {
@@ -327,8 +326,8 @@ async function verifyItemBalances(
327326
continue;
328327
}
329328

330-
// Check balance of the forge diamond for this item
331-
const balance = await itemsFacet.balanceOf(c.forgeDiamond!, itemId);
329+
// Check balance of the recipient for this item
330+
const balance = await itemsFacet.balanceOf(recipient, itemId);
332331
const expectedQuantity = itemType.maxQuantity;
333332

334333
console.log(`📊 Item ${itemId} (${itemType.name}):`);
@@ -712,7 +711,8 @@ export async function confirmChecklist(
712711
// Separate function for post-deployment onchain verification
713712
export async function verifyDeploymentOnchain(
714713
itemIds: number[],
715-
hre: any
714+
hre: any,
715+
recipient: string
716716
): Promise<boolean> {
717717
const shouldVerifyOnchain = await askQuestion(
718718
"\n🔍 Would you like to verify the data has been successfully uploaded onchain? (y/n): "
@@ -808,8 +808,8 @@ export async function verifyDeploymentOnchain(
808808
}
809809

810810
// Verify item balances (minted quantities)
811-
console.log("🔍 Checking item balances in forge diamond...");
812-
const balanceVerification = await verifyItemBalances(itemIds, hre);
811+
console.log("🔍 Checking item balances in recipient...");
812+
const balanceVerification = await verifyItemBalances(itemIds, hre, recipient);
813813
if (balanceVerification.verified.length > 0) {
814814
console.log(
815815
`✅ Item balances verified: ${balanceVerification.verified.join(", ")}`
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { run } from "hardhat";
2+
import { AddAndMintWearablesToForgeTaskArgs } from "../../tasks/addAndMintWearables";
3+
import { varsForNetwork } from "../../helpers/constants";
4+
import { ethers } from "hardhat";
5+
import { PC_WALLET } from "../geistBridge/paths";
6+
7+
async function addAndMintBaseBackgroundsToPC() {
8+
const itemIdsArray = [421, 422, 423, 424, 425, 426];
9+
const itemIds = itemIdsArray.join(",");
10+
11+
console.log(`\n📋 Item IDs to process: ${itemIds}`);
12+
13+
const c = await varsForNetwork(ethers);
14+
15+
const args: AddAndMintWearablesToForgeTaskArgs = {
16+
itemIds: itemIds,
17+
recipient: PC_WALLET,
18+
};
19+
20+
console.log(`\n🚀 Running deployment task with item IDs: ${itemIds}`);
21+
22+
// Run the main deployment task (which includes validation)
23+
await run("addAndMintBaseWearables", args);
24+
}
25+
26+
addAndMintBaseBackgroundsToPC()
27+
.then(() => process.exit(0))
28+
.catch((error) => {
29+
console.error(error);
30+
process.exit(1);
31+
});
32+
33+
exports.addAndMintBaseBackgroundsToPC = addAndMintBaseBackgroundsToPC;

svgs/allWearables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const svgMapping: { [key: number]: string } = {
8181
258: "Hanfu",
8282
259: "BushyEyebrows",
8383
260: "AncientBeard",
84-
261: "Aantenabot",
84+
261: "AantenaBot",
8585
362: "FakeShirt",
8686
363: "FakeBeret",
8787
367: "EyesOfDevotion",

svgs/svgItems/421_Base1BG.svg

Lines changed: 139 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)