Fix v14 migration issues
Release Creation / build (release) Successful in 45s

This commit is contained in:
2026-05-25 23:08:58 +02:00
parent c1a9bfbb04
commit 6ae99aadb0
36 changed files with 245 additions and 102 deletions
+6 -8
View File
@@ -28,6 +28,7 @@ import { EcrymeItem } from "./items/ecryme-item.js";
import { EcrymeHotbar } from "./app/ecryme-hotbar.js"
import { EcrymeCharacterSummary } from "./app/ecryme-summary-app.js"
import { ECRYME_CONFIG } from "./common/ecryme-config.js"
import * as models from "./models/_module.js"
/* -------------------------------------------- */
/* Foundry VTT Initialization */
@@ -36,10 +37,7 @@ import { ECRYME_CONFIG } from "./common/ecryme-config.js"
/************************************************************************************/
Hooks.once("init", async function () {
console.log(`Initializing Ecryme RPG`);
// Import DataModels dynamically to avoid timing issues
const models = await import("./models/_module.js");
console.log(`Initializing Ecryme RPG System`);
/* -------------------------------------------- */
// preload handlebars templates
@@ -85,7 +83,7 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */
// Register sheet application classes
foundry.documents.collections.Actors.unregisterSheet("core", foundry.appv1.sheets.ActorSheet);
foundry.documents.collections.Actors.registerSheet("fvtt-ecryme", EcrymeActorSheet, { types: ["pc"], makeDefault: true });
foundry.documents.collections.Actors.registerSheet("fvtt-ecryme", EcrymeActorSheet, { types: ["pc"], makeDefault: true });
foundry.documents.collections.Actors.registerSheet("fvtt-ecryme", EcrymeActorSheet, { types: ["npc"], makeDefault: true });
foundry.documents.collections.Actors.registerSheet("fvtt-ecryme", EcrymeAnnencySheet, { types: ["annency"], makeDefault: true });
@@ -137,7 +135,7 @@ async function importDefaultScene() {
}
/* -------------------------------------------- */lechauchix.lahiette.com
/* -------------------------------------------- */
/* Foundry VTT Initialization */
/* -------------------------------------------- */
Hooks.once("ready", function () {
@@ -166,11 +164,11 @@ Hooks.once("ready", function () {
})
/* -------------------------------------------- */
Hooks.once('babele.init', (babele) => {
Hooks.once("babele.init", (babele) => {
console.log("Initializing Babele translations")
babele.setSystemTranslationsDir("translated");
});
/* -------------------------------------------- */
/* Foundry VTT Initialization */
/* -------------------------------------------- */