mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 13:11:08 +01:00
Added homebrew for armor and weapon fatures
This commit is contained in:
parent
8fd63d5963
commit
45a322f418
20 changed files with 564 additions and 81 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { SYSTEM } from './module/config/system.mjs';
|
||||
import * as applications from './module/applications/_module.mjs';
|
||||
import * as data from './module/data/_module.mjs';
|
||||
import * as models from './module/data/_module.mjs';
|
||||
import * as documents from './module/documents/_module.mjs';
|
||||
import * as dice from './module/dice/_module.mjs';
|
||||
|
|
@ -26,6 +27,7 @@ Hooks.once('init', () => {
|
|||
CONFIG.DH = SYSTEM;
|
||||
game.system.api = {
|
||||
applications,
|
||||
data,
|
||||
models,
|
||||
documents,
|
||||
dice,
|
||||
|
|
@ -162,7 +164,7 @@ Hooks.on('ready', async () => {
|
|||
if (game.settings.get(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.appearance).displayFear !== 'hide')
|
||||
ui.resources.render({ force: true });
|
||||
|
||||
if(!(ui.compendiumBrowser instanceof applications.ui.ItemBrowser))
|
||||
if (!(ui.compendiumBrowser instanceof applications.ui.ItemBrowser))
|
||||
ui.compendiumBrowser = new applications.ui.ItemBrowser();
|
||||
|
||||
registerCountdownHooks();
|
||||
|
|
@ -309,5 +311,5 @@ Hooks.on('moveToken', async (movedToken, data) => {
|
|||
}
|
||||
});
|
||||
|
||||
Hooks.on("renderCompendiumDirectory", (app, html) => applications.ui.ItemBrowser.injectSidebarButton(html));
|
||||
Hooks.on("renderDocumentDirectory", (app, html) => applications.ui.ItemBrowser.injectSidebarButton(html));
|
||||
Hooks.on('renderCompendiumDirectory', (app, html) => applications.ui.ItemBrowser.injectSidebarButton(html));
|
||||
Hooks.on('renderDocumentDirectory', (app, html) => applications.ui.ItemBrowser.injectSidebarButton(html));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue