Add mutations + update compendiusm

This commit is contained in:
2023-12-04 18:32:55 +01:00
parent 5c889a5153
commit 028e8bddac
68 changed files with 243 additions and 197 deletions

View File

@@ -102,6 +102,17 @@ function registerUsageCount( registerKey ) {
}
}
/* -------------------------------------------- */
async function importDefaultScene() {
let exists = game.scenes.find(j => j.name == "Accueil");
if (!exists) {
const scenes = await WastelandUtility.loadCompendium("fvtt-wasteland.scenes")
let newDocuments = scenes.filter(i => i.name == "Accueil");
await game.scenes.documentClass.create(newDocuments);
game.scenes.find(i => i.name == "Accueil").activate();
}
}
/* -------------------------------------------- */
/* Foundry VTT Initialization */
/* -------------------------------------------- */
@@ -119,6 +130,9 @@ Hooks.once("ready", function () {
registerUsageCount('fvtt-wasteland')
welcomeMessage();
importDefaultScene();
});
/* -------------------------------------------- */