diff --git a/module/actor.js b/module/actor.js index e9429298..962c2b5d 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1149,6 +1149,7 @@ export class RdDActor extends RdDBaseActorSang { finalLevel: 0, diffConditions: 0, ajustementsForce: CONFIG.RDD.difficultesLibres, + config: game.system.rdd.config } let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-roll-ethylisme.html', rollData); new RdDRollDialogEthylisme(html, rollData, this, r => this.saouler(r.forceAlcool)).render(true); diff --git a/module/actor/base-actor-sheet.js b/module/actor/base-actor-sheet.js index eef49787..fd428432 100644 --- a/module/actor/base-actor-sheet.js +++ b/module/actor/base-actor-sheet.js @@ -38,7 +38,8 @@ export class RdDBaseActorSheet extends ActorSheet { description: await TextEditor.enrichHTML(this.actor.system.description, { async: true }), notesmj: await TextEditor.enrichHTML(this.actor.system.notesmj, { async: true }), options: RdDSheetUtility.mergeDocumentRights(this.options, this.actor, this.isEditable), - effects: this.actor.effects + effects: this.actor.effects, + config: game.system.rdd.config } RdDBaseActorSheet.filterItemsPerTypeForSheet(formData, this.actor.itemTypes); diff --git a/module/constants.js b/module/constants.js index 2861889b..cd4bb47e 100644 --- a/module/constants.js +++ b/module/constants.js @@ -8,3 +8,26 @@ export const SHOW_DICE = 'show'; export const ENTITE_INCARNE = 'incarne'; export const ENTITE_NONINCARNE = 'nonincarne'; export const ENTITE_BLURETTE = 'blurette'; + +export const RDD_CONFIG = { + niveauEthylisme : [ + {value: "1", label: "Aucun"}, + {value: "0", label: "Eméché (0)"}, + {value: "-1", label: "Gris (-1)"}, + {value: "-2", label: "Pinté (-2)"}, + {value: "-3", label: "Pas Frais (-3)"}, + {value: "-4", label: "Ivre (-4)"}, + {value: "-5", label: "Bu (-5)"}, + {value: "-6", label: "Complètement fait (-6)"}, + {value: "-7", label: "Ivre mort (-7)"} + ], + categorieEntite: { + "cauchemar": "Cauchemar", + "reve": "Rêve" + }, + typeEntite: { + "incarne": "Incarnée", + "nonincarne": "Non Incarnée", + "blurette": "Blurette" + } +} \ No newline at end of file diff --git a/module/rdd-main.js b/module/rdd-main.js index 8f9b5a11..cca02660 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -1,4 +1,4 @@ -import { SYSTEM_RDD, SYSTEM_SOCKET_ID } from "./constants.js"; +import { SYSTEM_RDD, SYSTEM_SOCKET_ID, RDD_CONFIG } from "./constants.js"; import { Migrations } from './migrations.js'; import { RdDUtility } from "./rdd-utility.js"; @@ -108,7 +108,8 @@ export class SystemReveDeDragon { /* -------------------------------------------- */ async onInit() { game.system.rdd = this; - this.AppAstrologie = AppAstrologie; + game.system.rdd.config = RDD_CONFIG; + this.AppAstrologie = AppAstrologie; console.log(`Initializing Reve de Dragon System`); diff --git a/templates/actor/carac-derivee.html b/templates/actor/carac-derivee.html index a7123b13..398a23ad 100644 --- a/templates/actor/carac-derivee.html +++ b/templates/actor/carac-derivee.html @@ -55,9 +55,7 @@
  • diff --git a/templates/actor/carac-entitee.html b/templates/actor/carac-entitee.html index 6a3b38d8..04f51c64 100644 --- a/templates/actor/carac-entitee.html +++ b/templates/actor/carac-entitee.html @@ -2,20 +2,13 @@
  • Catégorie :
  • Type d'entité :
  • {{#each system.attributs as |attr key|}}