From f20fded23c7cbe8ebca396713011e8552834d1c3 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Wed, 28 Jun 2023 11:49:17 +0200 Subject: [PATCH] Update confrontation --- lang/en.json | 6 ++++++ lang/fr.json | 6 ++++++ modules/common/ecryme-utility.js | 16 ++++++++++++++++ template.json | 30 ++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) diff --git a/lang/en.json b/lang/en.json index 17e1535..5874277 100644 --- a/lang/en.json +++ b/lang/en.json @@ -10,6 +10,12 @@ } }, "ECRY": { + "settings": { + "cogs": "Cogs", + "cephaly": "Cephaly", + "boheme": "Boheme", + "amertume": "Amertume" + }, "chat": { "formula": "Formula", "difficulty": "Difficulty", diff --git a/lang/fr.json b/lang/fr.json index 7a4a830..de968a8 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -10,6 +10,12 @@ } }, "ECRY": { + "settings": { + "cogs": "Engrenages", + "cephaly": "Céphalie", + "boheme": "Bohême", + "amertume": "Amertume" + }, "chat": { "formula": "Formule", "difficulty": "Difficulté", diff --git a/modules/common/ecryme-utility.js b/modules/common/ecryme-utility.js index 48a1c31..5c67206 100644 --- a/modules/common/ecryme-utility.js +++ b/modules/common/ecryme-utility.js @@ -56,6 +56,22 @@ export class EcrymeUtility { accum += block.fn(i); return accum; }) + + game.settings.register("fvtt-ecryme", "ecryme-game-level", { + name: game.i18n.localize("ECRY.settings.gamelevel"), + label: game.i18n.localize("ECRY.settings.gamelevelhelp"), + scope: 'world', + config: true, + type: String, + choices: { + "level_e": game.i18n.localize("ECRY.settings.cogs"), + "level_c": game.i18n.localize("ECRY.settings.cephaly"), + "level_b": game.i18n.localize("ECRY.settings.boheme"), + "level_a": game.i18n.localize("ECRY.settings.amertume"), + }, + restricted: true + }) + this.buildSkillConfig() } diff --git a/template.json b/template.json index 361e527..d4337f9 100644 --- a/template.json +++ b/template.json @@ -136,6 +136,36 @@ "major": 0 } }, + "cephaly": { + "name": "ECRY.ui.cephaly", + "skilllist": { + "elegy": { + "name": "ECRY.ui.elegy", + "value": 0, + "max": 10 + }, + "entelechy": { + "name": "ECRY.ui.entelechy", + "value": 0, + "max": 10 + }, + "mekany": { + "name": "ECRY.ui.mekany", + "value": 0, + "max": 10 + }, + "psyche": { + "name": "ECRY.ui.psyche", + "value": 0, + "max": 10 + }, + "scoria": { + "name": "ECRY.ui.scoria", + "value": 0, + "max": 10 + } + } + }, "internals": { "confrontbonus": 0 }