feat: add upgrade scrolls
This commit is contained in:
@@ -26,6 +26,12 @@ export const CONSUMABLES = {
|
||||
throwable: true,
|
||||
stackable: true,
|
||||
},
|
||||
upgrade_scroll: {
|
||||
name: "Upgrade Scroll",
|
||||
textureKey: "items",
|
||||
spriteIndex: 79,
|
||||
stackable: true,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const RANGED_WEAPONS = {
|
||||
@@ -224,6 +230,19 @@ export function createArmour(
|
||||
};
|
||||
}
|
||||
|
||||
export function createUpgradeScroll(quantity = 1): ConsumableItem {
|
||||
const t = CONSUMABLES["upgrade_scroll"];
|
||||
return {
|
||||
id: "upgrade_scroll",
|
||||
name: t.name,
|
||||
type: "Consumable",
|
||||
textureKey: t.textureKey,
|
||||
spriteIndex: t.spriteIndex,
|
||||
stackable: true,
|
||||
quantity,
|
||||
};
|
||||
}
|
||||
|
||||
// Legacy export for backward compatibility during migration
|
||||
export const ITEMS = ALL_TEMPLATES;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user