diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 58e1a19b..58cd9dc1 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -73,6 +73,7 @@ export class RdDActorSheet extends ActorSheet { formData.conteneurs = RdDUtility.conteneursRacine(formData.conteneurs); if (formData.type == 'personnage') { + formData.options.mainsDirectrices = MAINS_DIRECTRICES; formData.byCateg = Misc.classify(formData.competences, it => it.system.categorie) formData.calc.comptageArchetype = RdDItemCompetence.computeResumeArchetype(formData.competences); formData.calc.competenceXPTotal= RdDItemCompetence.computeTotalXP(formData.competences); diff --git a/module/actor.js b/module/actor.js index 4b63b1d5..8051e638 100644 --- a/module/actor.js +++ b/module/actor.js @@ -47,6 +47,9 @@ const POSSESSION_SANS_DRACONIC = { }; const PAS_DE_BLESSURE = { "active": false, "psdone": false, "scdone": false, "premiers_soins": 0, "soins_complets": 0, "jours": 0, "loc": "" }; + +export const MAINS_DIRECTRICES = ['Droitier', 'Gaucher', 'Ambidextre'] + /* -------------------------------------------- */ /** * Extend the base Actor entity by defining a custom roll data structure which is ideal for the Simple system. diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 4568f3df..5fd0ca0b 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -1,3 +1,4 @@ +{{>'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs'}}