Merge branch 'master-fix-comp-base' into 'master'

Fix categorieCompetences.base

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!196
This commit is contained in:
Leratier Bretonnien 2021-04-09 08:29:51 +00:00
commit 1bc5e06147

View File

@ -24,14 +24,14 @@ const limitesArchetypes = [
/* -------------------------------------------- */
const categorieCompetences = {
"generale": { level: "-4", label: "Générales" },
"particuliere": { level: "-8", label: "Particulières" },
"specialisee": { level: "-11", label: "Spécialisées" },
"connaissance": { level: "-11", label: "Connaissances" },
"draconic": { level: "-11", label: "Draconics" },
"melee": { level: "-6", label: "Mêlée" },
"tir": { level: "-8", label: "Tir" },
"lancer": { level: "-8", label: "Lancer" }
"generale": { base: "-4", label: "Générales" },
"particuliere": { base: "-8", label: "Particulières" },
"specialisee": { base: "-11", label: "Spécialisées" },
"connaissance": { base: "-11", label: "Connaissances" },
"draconic": { base: "-11", label: "Draconics" },
"melee": { base: "-6", label: "Mêlée" },
"tir": { base: "-8", label: "Tir" },
"lancer": { base: "-8", label: "Lancer" }
}
const compendiumCompetences = {
@ -64,7 +64,7 @@ export class RdDItemCompetence extends Item {
return categorieCompetences;
}
static getNiveauBase(category) {
return categorieCompetences[category].niveau;
return categorieCompetences[category].base;
}
static getLabelCategorie(category) {
return categorieCompetences[category].label;