forked from public/swade-fr-content
Enhance stats
This commit is contained in:
parent
00bc950479
commit
b55754941e
10
fr.json
10
fr.json
@ -88,5 +88,13 @@
|
|||||||
"Personal Defense" : "Autodéfense",
|
"Personal Defense" : "Autodéfense",
|
||||||
"Surveillance": "Surveillance",
|
"Surveillance": "Surveillance",
|
||||||
"Transportation": "Transport",
|
"Transportation": "Transport",
|
||||||
"Weapon": "Arme"
|
"Weapon": "Arme",
|
||||||
|
|
||||||
|
"vigor": "Vigueur",
|
||||||
|
"smarts": "Intelligence",
|
||||||
|
"agility": "Agilité",
|
||||||
|
"spirit": "Âme",
|
||||||
|
"strength": "Force",
|
||||||
|
"Health": "Santé",
|
||||||
|
"SWADE.Wounds": "Blessures"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { SWDELUXStatBlockParser } from "./sw-statblock-parser.js";
|
import { SWDELUXStatBlockParser } from "./sw-statblock-parser.js";
|
||||||
|
import { ClassCounter} from "https://www.uberwald.me/fvtt_appcount/count-class-ready.js"
|
||||||
const __compFolderTranslation = [
|
const __compFolderTranslation = [
|
||||||
{
|
{
|
||||||
compendium: 'swade-core-rules.swade-vehicles',
|
compendium: 'swade-core-rules.swade-vehicles',
|
||||||
@ -341,30 +341,6 @@ const subFolder = {
|
|||||||
'Vehicular Weapons': 'Armes de véhicules'
|
'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() {
|
async function loadSecretCompendiums() {
|
||||||
|
|
||||||
@ -445,8 +421,7 @@ Hooks.once('ready', () => {
|
|||||||
checkSwidSettings()
|
checkSwidSettings()
|
||||||
|
|
||||||
//FolderTranslate.translateFolders()
|
//FolderTranslate.translateFolders()
|
||||||
registerUsageCount("swade-fr-content")
|
ClassCounter.registerUsageCount("swade-fr-content")
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/************************************************************************************/
|
/************************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user