Initial Import

This commit is contained in:
2023-01-04 22:09:09 +01:00
parent 7665fb32b5
commit 76ca542cbb
26 changed files with 265 additions and 697 deletions

View File

@@ -1,8 +1,8 @@
export class CrucibleHotbar {
export class WarheroHotbar {
static async addToHotbar(item, slot) {
let command = `game.system.cruciblerpg.CrucibleHotbar.rollMacro("${item.name}", "${item.type}");`;
let command = `game.system.cruciblerpg.WarheroHotbar.rollMacro("${item.name}", "${item.type}");`;
let macro = game.macros.contents.find(m => (m.name === item.name) && (m.command === command));
if (!macro) {
macro = await Macro.create({