Release Creation / build (release) Successful in 45s
- partial-common-roll-dialog.hbs, confront-dialog.hbs: utiliser trait.id (pas trait._id) pour matcher rollData.traits construit dans ecryme-actor.js Fix: jet silencieux quand un trait était sélectionné (value=undefined -> getTrait(undefined) -> TypeError avant création du message de chat) - ecryme-config.js: traitLevel utilise des clés 1/2/3 (pas -3..+3) pour matcher le NumberField level (initial:1, min:1) du DataModel trait.js. Fix: le niveau revient sur -3 à l'édition car String(2) ne matchait pas '+2' Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
72 lines
2.0 KiB
JavaScript
72 lines
2.0 KiB
JavaScript
|
|
export const ECRYME_CONFIG = {
|
|
|
|
traitTypes: {
|
|
normal: "Normal",
|
|
spleen: "Spleen",
|
|
ideal: "Ideal"
|
|
},
|
|
weaponTypes: {
|
|
"melee": "ECRY.ui.melee",
|
|
"ranged": "ECRY.ui.ranged"
|
|
},
|
|
traitLevel: {
|
|
"1":{value: "1", text: "1"},
|
|
"2":{value: "2", text: "2"},
|
|
"3":{value: "3", text: "3"}
|
|
},
|
|
impactTypes: {
|
|
physical: "ECRY.ui.physical",
|
|
mental: "ECRY.ui.mental",
|
|
social: "ECRY.ui.social"
|
|
},
|
|
impactLevels: {
|
|
superficial: "ECRY.ui.superficial",
|
|
light: "ECRY.ui.light",
|
|
serious: "ECRY.ui.serious",
|
|
major: "ECRY.ui.major"
|
|
},
|
|
difficulty: {
|
|
"-1": {difficulty: "ECRY.ui.none", frequency: "ECRY.ui.none", value: "-1"},
|
|
"8": { difficulty: "ECRY.ui.troublesome", frequency: "ECRY.ui.occasional", value: 8 },
|
|
"10": { difficulty: "ECRY.ui.difficult", frequency: "ECRY.ui.uncommon", value: 10 },
|
|
"12": { difficulty: "ECRY.ui.verydifficult", frequency: "ECRY.ui.rare", value: 12 },
|
|
"14": { difficulty: "ECRY.ui.extremdifficult", frequency: "ECRY.ui.veryrare", value: 14 },
|
|
"16": { difficulty: "ECRY.ui.increddifficult", frequency: "ECRY.ui.exceptrare", value: 16 },
|
|
},
|
|
skillLevel: {
|
|
"0": "0",
|
|
"1": "1",
|
|
"2": "2",
|
|
"3": "3",
|
|
"4": "4",
|
|
"5": "5",
|
|
"6": "6",
|
|
"7": "7",
|
|
"8": "8",
|
|
"9": "9",
|
|
"10": "10"
|
|
},
|
|
costUnits: {
|
|
"ingot": {name: "ECRY.ui.ingot", value: 100000},
|
|
"ingotin": {name: "ECRY.ui.ingotin", value: 10000},
|
|
"goldcoin": {name: "ECRY.ui.goldcoin", value: 1000 },
|
|
"lige": {name: "ECRY.ui.lige", value: 100 },
|
|
"hurle": {name: "ECRY.ui.hurle", value: 10 },
|
|
"coin": {name: "ECRY.ui.coin", value: 1 }
|
|
},
|
|
transcendanceOptions: {
|
|
"execution": "ECRY.ui.execution",
|
|
"preservation": "ECRY.ui.preservation"
|
|
},
|
|
bonusMalusPersoOptions: {
|
|
"-3": {value: "-3", label: "-3"},
|
|
"-2": {value: "-2", label: "-2"},
|
|
"-1": {value: "-1", label: "-1"},
|
|
"0": {value: "0", label: "0"},
|
|
"+1": {value: "1", label: "+1"},
|
|
"+2": {value: "2", label: "+2"},
|
|
"+3": {value: "3", label: "+3"}
|
|
}
|
|
|
|
} |