Add v12 support

This commit is contained in:
2024-05-23 11:36:03 +02:00
parent a716a3b3d1
commit bddf772c99
157 changed files with 568 additions and 511 deletions

View File

@@ -16,7 +16,6 @@ import { WastelandUtility } from "./wasteland-utility.js";
import { WastelandCombat } from "./wasteland-combat.js";
import { WastelandItem } from "./wasteland-item.js";
import { WASTELAND_CONFIG } from "./wasteland-config.js";
import { ClassCounter} from "https://www.uberwald.me/fvtt_appcount/count-class-ready.js"
/* -------------------------------------------- */
/* Foundry VTT Initialization */
@@ -96,9 +95,6 @@ Hooks.once("ready", function () {
WastelandUtility.ready();
ClassCounter.registerUsageCount()
welcomeMessage();
// User warning
if (!game.user.isGM && game.user.character == undefined) {
ui.notifications.info("Attention ! Aucun personnage n'est relié au joueur !");
@@ -115,6 +111,14 @@ Hooks.once("ready", function () {
});
}
import("https://www.uberwald.me/fvtt_appcount/count-class-ready.js").then(moduleCounter=>{
console.log("ClassCounter loaded", moduleCounter)
moduleCounter.ClassCounter.registerUsageCount()
}).catch(err=>
console.log("No stats available, giving up.")
)
welcomeMessage();
importDefaultScene();
});