Enhance stats

This commit is contained in:
LeRatierBretonnien 2024-02-08 12:58:44 +01:00
parent 00bc950479
commit b55754941e
2 changed files with 11 additions and 28 deletions

10
fr.json
View File

@ -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"
}

View File

@ -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")
});
/************************************************************************************/