mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Merge remote-tracking branch 'origin/main' into refactor/84-data-models-structure
This commit is contained in:
commit
a6acbe750a
368 changed files with 5489 additions and 2581 deletions
|
|
@ -13,6 +13,7 @@ import DhpTokenRuler from './module/ui/tokenRuler.mjs';
|
|||
import { dualityRollEnricher } from './module/enrichers/DualityRollEnricher.mjs';
|
||||
import { getCommandTarget, rollCommandToJSON, setDiceSoNiceForDualityRoll } from './module/helpers/utils.mjs';
|
||||
import { abilities } from './module/config/actorConfig.mjs';
|
||||
import Resources from './module/applications/resources.mjs';
|
||||
|
||||
globalThis.SYSTEM = SYSTEM;
|
||||
|
||||
|
|
@ -83,18 +84,28 @@ Hooks.once('init', () => {
|
|||
CONFIG.Combat.documentClass = documents.DhpCombat;
|
||||
CONFIG.ui.combat = DhpCombatTracker;
|
||||
CONFIG.ui.chat = DhpChatLog;
|
||||
CONFIG.ui.players = DhpPlayers;
|
||||
// CONFIG.ui.players = DhpPlayers;
|
||||
CONFIG.Token.rulerClass = DhpTokenRuler;
|
||||
|
||||
CONFIG.ui.resources = Resources;
|
||||
|
||||
game.socket.on(`system.${SYSTEM.id}`, handleSocketEvent);
|
||||
|
||||
// Make Compendium Dialog resizable
|
||||
foundry.applications.sidebar.apps.Compendium.DEFAULT_OPTIONS.window.resizable = true;
|
||||
|
||||
registerDHSettings();
|
||||
RegisterHandlebarsHelpers.registerHelpers();
|
||||
|
||||
return preloadHandlebarsTemplates();
|
||||
});
|
||||
|
||||
Hooks.once('dicesoniceready', () => { });
|
||||
Hooks.on('ready', () => {
|
||||
ui.resources = new CONFIG.ui.resources();
|
||||
ui.resources.render({force: true});
|
||||
})
|
||||
|
||||
Hooks.once('dicesoniceready', () => {});
|
||||
|
||||
Hooks.on(socketEvent.GMUpdate, async (action, uuid, update) => {
|
||||
if (game.user.isGM) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue