From f65110f2a8ff6253626775649d90ed28cedda776 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 23 Mar 2022 23:19:58 +0100 Subject: [PATCH] New difficulties --- addon-register.js | 27 +++++++++++++++++++++++++++ module.json | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/addon-register.js b/addon-register.js index 770da84..084b2fd 100644 --- a/addon-register.js +++ b/addon-register.js @@ -306,6 +306,33 @@ Hooks.once('ready', () => { } ChatMessage.create(chatData); } + + /** New modifiers */ + game.wfrp4e.config.difficultyModifiers = { + "veasy": 60, + "easy": 40, + "banal": 30, + "average": 20, + "medium": 10, + "challenging": 0, + "difficult": -10, + "hard": -20, + "vhard": -30, + "doom": -40 + } + game.wfrp4e.config.difficultyLabels = { + + "veasy": "Trés Facile (+60)", + "easy": "Facile (+40)", + "banal": "Banal (+30)", + "average": "Accessible (+20)", + "medium": "Faisable (+10)", + "challenging": "Intermédiaire (+0)", + "difficult": "Complexe (-10)", + "hard": "Difficile (-20)", + "vhard": "Très Difficile (-30)", + "doom": "Maudit (-40)" + } //setTimeout( __check_fix_wrong_modules, 2000, true, false); setTimeout( __check_fix_wrong_modules, 20000, true, true); diff --git a/module.json b/module.json index cb74556..29ff24d 100644 --- a/module.json +++ b/module.json @@ -5,7 +5,7 @@ "authors": [ {"name":"LeRatierBretonnien" }], "url": "https://gitlab.com/LeRatierBretonnien/foundryvtt-wh4-lang-fr-fr", "flags": {}, - "version": "5.2.0", + "version": "5.2.1", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "9", "scripts": [],