import { ItemCategory } from "./itemCategories.js"; /** * Quest-only props (no gameplay). Magenta art under `items/quest_unique/`, * tinted per colour so stacks never mix across colours. */ export const RunestoneItemId = Object.freeze({ blueRunestone: 591, redRunestone: 592, greenRunestone: 593, yellowRunestone: 594 }); /** Greyish stone hues (0–1) — coloured rock, not neon. */ export const RUNESTONE_TINT = Object.freeze({ blueRunestone: Object.freeze({ r: 0.42, g: 0.46, b: 0.55 }), redRunestone: Object.freeze({ r: 0.55, g: 0.40, b: 0.38 }), greenRunestone: Object.freeze({ r: 0.40, g: 0.50, b: 0.42 }), yellowRunestone: Object.freeze({ r: 0.54, g: 0.50, b: 0.36 }) }); const RUNESTONE_META = Object.freeze({ blueRunestone: Object.freeze({ key: "blue-runestone", displayName: "Blue Runestone", description: "A greyish blue runestone. Heavy, cold, and quiet." }), redRunestone: Object.freeze({ key: "red-runestone", displayName: "Red Runestone", description: "A greyish red runestone. Heavy, cold, and quiet." }), greenRunestone: Object.freeze({ key: "green-runestone", displayName: "Green Runestone", description: "A greyish green runestone. Heavy, cold, and quiet." }), yellowRunestone: Object.freeze({ key: "yellow-runestone", displayName: "Yellow Runestone", description: "A greyish yellow runestone. Heavy, cold, and quiet." }) }); function buildRunestoneDefinitions () { const defs = {}; for (const idKey of Object.keys(RunestoneItemId)) { const itemId = RunestoneItemId[idKey]; const meta = RUNESTONE_META[idKey]; const tint = RUNESTONE_TINT[idKey]; defs[itemId] = Object.freeze({ itemId, key: meta.key, displayName: meta.displayName, description: meta.description, seedValue: 1, stackable: true, maxStackSize: 16, uniqueInstance: false, category: ItemCategory.other, iconKey: "quest_unique", defaultState: "runestone", questUnique: true, tint: Object.freeze({ r: tint.r, g: tint.g, b: tint.b }) }); } return defs; } export const QUEST_UNIQUE_ITEM_DEFINITIONS = Object.freeze(buildRunestoneDefinitions());