159 lines
5.5 KiB
JavaScript
159 lines
5.5 KiB
JavaScript
"use strict";
|
|
|
|
// Item visual metadata and palettes.
|
|
(function (global) {
|
|
const raw = String.raw`{
|
|
"water": {
|
|
"renderer": "oval_droplet",
|
|
"shape": "horizontal_oval_liquid",
|
|
"palette": { "fill": "rgba(86,157,224,0.82)", "stroke": "rgba(45,101,168,0.52)", "highlight": "rgba(255,255,255,0.64)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["horizontal", "oval", "liquid", "blue"]
|
|
},
|
|
"zunda_juice": {
|
|
"renderer": "oval_droplet",
|
|
"shape": "horizontal_oval_liquid",
|
|
"palette": { "fill": "rgba(125,218,82,0.94)", "stroke": "rgba(63,150,50,0.62)", "highlight": "rgba(238,255,226,0.72)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["horizontal", "oval", "liquid", "green"]
|
|
},
|
|
"mercury": {
|
|
"renderer": "oval_droplet",
|
|
"shape": "horizontal_oval_liquid",
|
|
"palette": { "fill": "rgba(210,216,222,0.94)", "stroke": "rgba(112,122,132,0.62)", "highlight": "rgba(255,255,255,0.72)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["horizontal", "oval", "liquid", "silver"]
|
|
},
|
|
"sleep_drug": {
|
|
"renderer": "sleep_tablet",
|
|
"shape": "moon_tablet",
|
|
"palette": { "fill": "#ebe4ff", "stroke": "rgba(74,60,144,0.72)", "accent": "rgba(112,91,188,0.82)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["tablet", "moon", "purple"]
|
|
},
|
|
"first_aid": {
|
|
"renderer": "split_pill",
|
|
"shape": "cross_tablet",
|
|
"palette": { "fill": "#fff1f1", "stroke": "rgba(180,55,65,0.78)", "highlight": "rgba(220,64,78,0.82)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["tablet", "cross", "red"]
|
|
},
|
|
"sedative": {
|
|
"renderer": "split_pill",
|
|
"shape": "calm_tablet",
|
|
"palette": { "fill": "#edf7ff", "stroke": "rgba(58,104,142,0.78)", "highlight": "rgba(92,142,174,0.82)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["tablet", "calm", "blue"]
|
|
},
|
|
"laxative": {
|
|
"renderer": "laxative_tablet",
|
|
"shape": "rounded_tablet_zunchi_motif",
|
|
"palette": { "fill": "#f4d49a", "stroke": "rgba(98,61,29,0.82)", "accent": "rgba(96,70,38,0.88)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["tablet", "zunchi motif", "tan"]
|
|
},
|
|
"mystery_drug": {
|
|
"renderer": "mystery_tablet",
|
|
"shape": "question_mark_tablet",
|
|
"palette": { "fill": "#f3ecff", "stroke": "rgba(91,55,150,0.84)", "accent": "rgba(91,55,150,0.92)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["tablet", "question mark", "purple"]
|
|
},
|
|
"ammo": {
|
|
"renderer": "bullet",
|
|
"shape": "bullet",
|
|
"palette": { "fill": "#f4c46a", "stroke": "rgba(87,51,22,0.78)", "highlight": "rgba(255,237,176,0.62)" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["bullet", "gold"]
|
|
},
|
|
"protein": {
|
|
"renderer": "powder_pile",
|
|
"shape": "powder_pile",
|
|
"palette": { "fill": "#f4a24f", "stroke": "#b45b27", "highlight": "#ffe2b9" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["powder", "orange"]
|
|
},
|
|
"niteropu": {
|
|
"renderer": "powder_pile",
|
|
"shape": "powder_pile",
|
|
"palette": { "fill": "#8a79d0", "stroke": "#4c3f91", "highlight": "#d8d1ff" },
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["powder", "purple"]
|
|
},
|
|
"giant_drug": {
|
|
"renderer": "split_pill",
|
|
"shape": "split_pill",
|
|
"palette": { "fill": "#ffe3cf", "stroke": "#c9632f", "highlight": "#ffb47b" },
|
|
"scale": 1.08,
|
|
"uiPreviewScale": 1.08,
|
|
"fieldScale": 1.08,
|
|
"accessibleShapeTraits": ["pill", "large", "orange"]
|
|
},
|
|
"dwarf_drug": {
|
|
"renderer": "split_pill",
|
|
"shape": "split_pill",
|
|
"palette": { "fill": "#e9e9ff", "stroke": "#6967ac", "highlight": "#b8b5f4" },
|
|
"scale": 0.92,
|
|
"uiPreviewScale": 0.92,
|
|
"fieldScale": 0.92,
|
|
"accessibleShapeTraits": ["pill", "small", "purple"]
|
|
},
|
|
"ball": {
|
|
"renderer": "emoji",
|
|
"shape": "soccer_ball",
|
|
"palette": {},
|
|
"scale": 1,
|
|
"uiPreviewScale": 1,
|
|
"fieldScale": 1,
|
|
"accessibleShapeTraits": ["round", "soccer ball"],
|
|
"emojiFallback": "\u26bd"
|
|
},
|
|
"balloon": {
|
|
"renderer": "vector_balloon",
|
|
"shape": "round_water_balloon_with_string",
|
|
"palette": { "fill": "#58bde8", "stroke": "rgba(38,83,123,0.76)", "highlight": "rgba(255,255,255,0.72)" },
|
|
"scale": 1.05,
|
|
"uiPreviewScale": 1.06,
|
|
"fieldScale": 1.05,
|
|
"accessibleShapeTraits": ["round", "water balloon", "string", "blue"]
|
|
},
|
|
"fan": {
|
|
"renderer": "vector_fan",
|
|
"shape": "directional_fan",
|
|
"palette": { "fill": "#d7e2ea", "stroke": "rgba(58,74,84,0.74)", "accent": "rgba(92,142,174,0.88)" },
|
|
"scale": 1.08,
|
|
"uiPreviewScale": 1.08,
|
|
"fieldScale": 1.08,
|
|
"accessibleShapeTraits": ["fan", "directional", "wind"]
|
|
}
|
|
}`;
|
|
|
|
const defs = Object.freeze(JSON.parse(raw));
|
|
|
|
function itemVisualDefinition(type = "") {
|
|
return defs[String(type || "")] || null;
|
|
}
|
|
global.itemVisualDefinition = itemVisualDefinition;
|
|
})(typeof window !== "undefined" ? window : globalThis);
|