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