Initial import

This commit is contained in:
2022-12-26 20:46:03 +01:00
parent ad7757da76
commit e3677e9739
7 changed files with 94 additions and 133 deletions

View File

@@ -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

View File

@@ -2,6 +2,11 @@
export const HERITIERS_CONFIG = {
competenceCategorie : {
"utile": "Utile",
"futile": "Futile"
},
competenceProfil : {
"aventurier": "Aventurier",
"roublard": "Roublard",
"combattant": "Combattant",

View File

@@ -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

View File

@@ -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
}
/* -------------------------------------------- */