diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index bd1357c..eb30cf3 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -185,6 +185,9 @@ export class BoLActorSheet extends ActorSheet { case "aptitude" : BoLRoll.aptitudeCheck(this.actor, actorData, dataset, event); break; + case "weapon": + console.log("ROLL WEAPON !!!"); // TODO + break; default : break; } } diff --git a/module/system/settings.js b/module/system/settings.js index b0c530d..1e061c9 100644 --- a/module/system/settings.js +++ b/module/system/settings.js @@ -9,5 +9,15 @@ export const registerSystemSettings = function() { type: Boolean, onChange: lang => window.location.reload() }); + + game.settings.register("bol", "rollArmor", { + name: "Effectuer des jets pour les armures", + hint: "Effectue un jet de dés pour les armures (valeur fixe si désactivé)", + scope: "world", + config: true, + default: true, + type: Boolean, + onChange: lang => window.location.reload() + }); }; diff --git a/templates/actor/parts/tabs/actor-actions.hbs b/templates/actor/parts/tabs/actor-actions.hbs index b612857..ec968ba 100644 --- a/templates/actor/parts/tabs/actor-actions.hbs +++ b/templates/actor/parts/tabs/actor-actions.hbs @@ -5,3 +5,24 @@