From b55754941e72cbb66d9912bc40a89200ba9e4447 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 8 Feb 2024 12:58:44 +0100 Subject: [PATCH] Enhance stats --- fr.json | 10 +++++++++- modules/swade-fr-init.js | 29 ++--------------------------- 2 files changed, 11 insertions(+), 28 deletions(-) diff --git a/fr.json b/fr.json index 4a563ec..26a37e4 100644 --- a/fr.json +++ b/fr.json @@ -88,5 +88,13 @@ "Personal Defense" : "Autodéfense", "Surveillance": "Surveillance", "Transportation": "Transport", - "Weapon": "Arme" + "Weapon": "Arme", + + "vigor": "Vigueur", + "smarts": "Intelligence", + "agility": "Agilité", + "spirit": "Âme", + "strength": "Force", + "Health": "Santé", + "SWADE.Wounds": "Blessures" } diff --git a/modules/swade-fr-init.js b/modules/swade-fr-init.js index 4d07428..7d353ea 100644 --- a/modules/swade-fr-init.js +++ b/modules/swade-fr-init.js @@ -1,5 +1,5 @@ import { SWDELUXStatBlockParser } from "./sw-statblock-parser.js"; - +import { ClassCounter} from "https://www.uberwald.me/fvtt_appcount/count-class-ready.js" const __compFolderTranslation = [ { compendium: 'swade-core-rules.swade-vehicles', @@ -341,30 +341,6 @@ const subFolder = { 'Vehicular Weapons': 'Armes de véhicules' } -/************************************************************************************/ -// Register world usage statistics -function registerUsageCount(registerKey) { - if (game.user.isGM) { - game.settings.register(registerKey, "world-key", { - name: "Unique world key", - scope: "world", - config: false, - default: "", - type: String - }); - - let worldKey = game.settings.get(registerKey, "world-key") - if (worldKey == undefined || worldKey == "") { - worldKey = randomID(32) - game.settings.set(registerKey, "world-key", worldKey) - } - // Simple API counter - let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"` - $.ajax(regURL) - /* -------------------------------------------- */ - } -} - /************************************************************************************/ async function loadSecretCompendiums() { @@ -445,8 +421,7 @@ Hooks.once('ready', () => { checkSwidSettings() //FolderTranslate.translateFolders() - registerUsageCount("swade-fr-content") - + ClassCounter.registerUsageCount("swade-fr-content") }); /************************************************************************************/