Initial import
This commit is contained in:
@@ -7,7 +7,7 @@ import { HeritiersRollDialog } from "./heritiers-roll-dialog.js";
|
||||
export class HeritiersCommands {
|
||||
|
||||
static init() {
|
||||
if (!game.system.hawkmoon.commands) {
|
||||
if (!game.system.lesheritiers.commands) {
|
||||
//const HeritiersCommands = new HeritiersCommands()
|
||||
//HeritiersCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => HeritiersCommands.createChar(msg), descr: "Create a new character" });
|
||||
//game.system.mournblade.commands = HeritiersCommands
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
export const HERITIERS_CONFIG = {
|
||||
|
||||
competenceCategorie : {
|
||||
"utile": "Utile",
|
||||
"futile": "Futile"
|
||||
},
|
||||
|
||||
competenceProfil : {
|
||||
"aventurier": "Aventurier",
|
||||
"roublard": "Roublard",
|
||||
"combattant": "Combattant",
|
||||
|
||||
@@ -62,6 +62,7 @@ export class HeritiersItemSheet extends ItemSheet {
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
config: game.system.lesheritiers.config,
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
mr: (this.object.type == 'specialisation'),
|
||||
isGM: game.user.isGM
|
||||
|
||||
@@ -17,6 +17,7 @@ import { HeritiersCombat } from "./heritiers-combat.js";
|
||||
import { HeritiersItem } from "./heritiers-item.js";
|
||||
import { HeritiersAutomation } from "./heritiers-automation.js";
|
||||
import { HeritiersTokenHud } from "./heritiers-hud.js";
|
||||
import { HERITIERS_CONFIG } from "./heritiers-config.js";
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Foundry VTT Initialization */
|
||||
@@ -47,9 +48,10 @@ Hooks.once("init", async function () {
|
||||
CONFIG.Combat.documentClass = HeritiersCombat
|
||||
CONFIG.Actor.documentClass = HeritiersActor
|
||||
CONFIG.Item.documentClass = HeritiersItem
|
||||
game.system.hawkmoon = {
|
||||
game.system.lesheritiers = {
|
||||
HeritiersUtility,
|
||||
HeritiersAutomation
|
||||
HeritiersAutomation,
|
||||
config: HERITIERS_CONFIG
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user