Add babele JSON files

This commit is contained in:
2024-10-13 17:08:33 +02:00
parent 3ba0449c12
commit e93a554715
115 changed files with 2139 additions and 317 deletions

View File

@ -36,7 +36,6 @@ Hooks.once('init', async function () {
BoLUtility.onSocketMessage(sockmsg);
})
/**
* Set an initiative formula for the system
* @type {String}
@ -45,7 +44,7 @@ Hooks.once('init', async function () {
formula: "2d6+@attributes.mind.value+@aptitudes.init.value",
decimals: 2
};
// Define custom Entity classes
CONFIG.Actor.documentClass = BoLActor;
CONFIG.Item.documentClass = BoLItem;
@ -65,7 +64,7 @@ Hooks.once('init', async function () {
BoLTokenHud.init()
BoLHotbar.init()
BoLCommands.init()
// Preload Handlebars Templates
await preloadHandlebarsTemplates();
@ -75,6 +74,10 @@ Hooks.once('init', async function () {
// Register hooks
registerHooks()
if (typeof Babele !== 'undefined') {
Babele.get().setSystemTranslationsDir("compendiums");
}
});
@ -98,10 +101,10 @@ Hooks.once('ready', async function () {
BoLUtility.ready()
import("https://www.uberwald.me/fvtt_appcount/count-class-ready.js").then(moduleCounter=>{
import("https://www.uberwald.me/fvtt_appcount/count-class-ready.js").then(moduleCounter => {
console.log("ClassCounter loaded", moduleCounter)
moduleCounter.ClassCounter.registerUsageCount()
}).catch(err=>
}).catch(err =>
console.log("No stats available, giving up.")
)