Sync with deliveries
This commit is contained in:
@@ -44,7 +44,7 @@ export class CrucibleActor extends Actor {
|
||||
|
||||
if (data.type == 'character') {
|
||||
const skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills");
|
||||
data.items = skills.map(i => i.toObject());
|
||||
data.items = skills.map(i => i.toObject())
|
||||
}
|
||||
if (data.type == 'npc') {
|
||||
}
|
||||
|
||||
@@ -86,7 +86,6 @@ function welcomeMessage() {
|
||||
/* -------------------------------------------- */
|
||||
Hooks.once("ready", function () {
|
||||
|
||||
CrucibleUtility.ready();
|
||||
// User warning
|
||||
if (!game.user.isGM && game.user.character == undefined) {
|
||||
ui.notifications.info("Warning ! No character linked to your user !");
|
||||
@@ -103,7 +102,8 @@ Hooks.once("ready", function () {
|
||||
}
|
||||
|
||||
welcomeMessage();
|
||||
});
|
||||
CrucibleUtility.ready()
|
||||
})
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Foundry VTT Initialization */
|
||||
|
||||
@@ -18,8 +18,6 @@ export class CrucibleUtility {
|
||||
});
|
||||
|
||||
this.rollDataStore = {}
|
||||
this.skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills");
|
||||
this.weaponSkills = this.skills.filter( item => item.data.data.isweaponskill)
|
||||
|
||||
CrucibleCommands.init();
|
||||
|
||||
@@ -59,11 +57,11 @@ export class CrucibleUtility {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async ready() {
|
||||
const specs = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills");
|
||||
this.specs = specs.map(i => i.toObject());
|
||||
const skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills")
|
||||
this.skills = skills.map(i => i.toObject())
|
||||
this.weaponSkills = duplicate( this.skills.filter( item => item.data.isweaponskill))
|
||||
}
|
||||
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async loadCompendiumData(compendium) {
|
||||
const pack = game.packs.get(compendium);
|
||||
|
||||
Reference in New Issue
Block a user