Minimal working example for a character sheet
This commit is contained in:
parent
08a8b89ec0
commit
e5c1cfec97
11 changed files with 91 additions and 31 deletions
25
module/dotdungeon.js
Normal file
25
module/dotdungeon.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { CharacterActor } from "./documents/CharacterActor.js";
|
||||
import { CharacterSheet } from "./sheets/CharacterSheet.js";
|
||||
|
||||
import * as hbs from "./handlebars.js";
|
||||
|
||||
// import diceChoice from "../templates/actors/char-sheet-mvp/partials/dice_choice.hbs?raw";
|
||||
|
||||
Hooks.once(`init`, async function () {
|
||||
game.boilerplate = {
|
||||
CharacterActor,
|
||||
};
|
||||
|
||||
Actors.unregisterSheet("core", ActorSheet);
|
||||
Actors.registerSheet("dotdungeon", CharacterSheet, { makeDefault: true, });
|
||||
|
||||
|
||||
await hbs.registerHandlebarsHelpers();
|
||||
await hbs.preloadHandlebarsTemplates()
|
||||
console.info(`.dungeon | Dot Dungeon has been initialized fully`);
|
||||
});
|
||||
|
||||
|
||||
Hooks.once(`ready`, function() {
|
||||
console.info(".dungeon | Ready");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue