Ajout du modèle de données pour les rencontres.

This commit is contained in:
ZigmundKreud
2022-01-05 22:46:26 +01:00
parent e9eb9e2cff
commit 2f19ba1948
16 changed files with 414 additions and 138 deletions

View File

@ -75,29 +75,4 @@ Hooks.once('init', async function () {
// Handlebars.registerHelper('toLowerCase', function(str) {
// return str.toLowerCase();
// });
});
/**
* Ready hook loads tables, and override's foundry's entity link functions to provide extension to pseudo entities
*/
Hooks.once("ready", async () => {
console.debug("Importing data");
// DataLoader.loadData("boons");
// DataLoader.loadData("flaws");
// DataLoader.loadData("careers");
// DataLoader.loadData("origins");
// DataLoader.loadData("races");
// DataLoader.loadData("equipment");
// UpdateUtils.updatePacks();
// UpdateUtils.updatePaths();
// UpdateUtils.updateProfiles();
// UpdateUtils.updateSpecies();
// UpdateUtils.updateEncounters();
console.info("BOL | System Initialized.");
});
});

View File

@ -52,7 +52,7 @@ export class BoLRoll {
label: (weapon.name) ? weapon.name : game.i18n.localize('BOL.ui.noWeaponName'),
description: actor.name + " - " + game.i18n.localize('BOL.ui.weaponAttack'),
}
console.log("WEAPON!", attackDef, weaponData);
console.debug("WEAPON!", attackDef, weaponData);
return this.weaponRollDialog(attackDef);
}

View File

@ -39,7 +39,7 @@ export class BoLItemSheet extends ItemSheet {
data.category = itemData.category;
data.itemProperties = this.item.itemProperties;
data.isGM = game.user.isGM;
console.log("ITEMDATA", data);
console.debug("ITEMDATA", data);
return data;
}

View File

@ -87,15 +87,23 @@ BOL.aptitudes = {
"def" : "BOL.aptitudes.def"
}
BOL.weaponSizes = {
"unarmed" : "BOL.weaponSize.unarmed",
"improvised" : "BOL.weaponSize.improvised",
"light" : "BOL.weaponSize.light",
"medium" : "BOL.weaponSize.medium",
"heavy" : "BOL.weaponSize.heavy"
}
BOL.damageAttributes = {
"zero" : "0",
"vigor" : "BOL.attributes.vigor",
"agility" : "BOL.attributes.agility",
"mind" : "BOL.attributes.mind",
"appeal" : "BOL.attributes.appeal"
"half-vigor" : "BOL.attributes.halfvigor"
}
BOL.itemCategories = {
"equipment" : "BOL.itemCategory.equipment",
"capacity" : "BOL.itemCategory.capacity",
"spell" : "BOL.itemCategory.spell",
"vehicle" : "BOL.itemCategory.vehicle",
"other" : "BOL.itemCategory.other"

View File

@ -1,8 +1,21 @@
import {BoLUtility} from "./bol-utility.js";
export default function registerHooks() {
/**
* Ready hook loads tables, and override's foundry's entity link functions to provide extension to pseudo entities
*/
Hooks.once("ready", async () => {
console.info("BOL | System Initialized.");
});
Hooks.on("renderPause", ((_app, html) => {
html.find("img").attr("src", "systems/bol/ui/pause2.webp")
}))
Hooks.on('renderChatLog', (log, html, data) => BoLUtility.chatListeners(html));
/**
* Create a macro when dropping an entity on the hotbar
* Item - open roll dialog for item

View File

@ -19,6 +19,7 @@ export const preloadHandlebarsTemplates = async function () {
"systems/bol/templates/item/parts/properties/feature-properties.hbs",
"systems/bol/templates/item/parts/properties/item-properties.hbs",
"systems/bol/templates/item/parts/properties/item/equipment-properties.hbs",
"systems/bol/templates/item/parts/properties/item/capacity-properties.hbs",
"systems/bol/templates/item/parts/properties/item/vehicle-properties.hbs",
"systems/bol/templates/item/parts/properties/item/protection-properties.hbs",
"systems/bol/templates/item/parts/properties/item/weapon-properties.hbs",