feat: add upgrade scrolls

This commit is contained in:
Peter Stockings
2026-01-23 23:26:55 +11:00
parent e130e6d174
commit c415becc38
8 changed files with 412 additions and 4 deletions

View File

@@ -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;