Iteam cleanup + less migration
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { SYSTEM } from "./module/config/system.mjs"
|
||||
import { SYSTEM, STATUS_EFFECTS } from "./module/config/system.mjs"
|
||||
globalThis.SYSTEM = SYSTEM
|
||||
|
||||
import * as models from "./module/models/_module.mjs"
|
||||
@@ -25,15 +25,13 @@ Hooks.once("init", function () {
|
||||
CONFIG.Item.dataModels = {
|
||||
weapon: models.OathHammerWeapon,
|
||||
armor: models.OathHammerArmor,
|
||||
shield: models.OathHammerShield,
|
||||
ammunition: models.OathHammerAmmunition,
|
||||
equipment: models.OathHammerEquipment,
|
||||
spell: models.OathHammerSpell,
|
||||
miracle: models.OathHammerMiracle,
|
||||
"magic-item": models.OathHammerMagicItem,
|
||||
ability: models.OathHammerAbility,
|
||||
oath: models.OathHammerOath,
|
||||
condition: models.OathHammerCondition
|
||||
oath: models.OathHammerOath
|
||||
}
|
||||
|
||||
foundry.documents.collections.Actors.unregisterSheet("core", foundry.appv1.sheets.ActorSheet)
|
||||
@@ -51,7 +49,6 @@ Hooks.once("init", function () {
|
||||
foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ItemSheet)
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerWeaponSheet, { types: ["weapon"], makeDefault: true, label: "OATHHAMMER.Sheet.Weapon" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerArmorSheet, { types: ["armor"], makeDefault: true, label: "OATHHAMMER.Sheet.Armor" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerShieldSheet, { types: ["shield"], makeDefault: true, label: "OATHHAMMER.Sheet.Shield" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerAmmunitionSheet, { types: ["ammunition"], makeDefault: true, label: "OATHHAMMER.Sheet.Ammunition" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerEquipmentSheet, { types: ["equipment"], makeDefault: true, label: "OATHHAMMER.Sheet.Equipment" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerSpellSheet, { types: ["spell"], makeDefault: true, label: "OATHHAMMER.Sheet.Spell" })
|
||||
@@ -59,7 +56,8 @@ Hooks.once("init", function () {
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerMagicItemSheet, { types: ["magic-item"], makeDefault: true, label: "OATHHAMMER.Sheet.MagicItem" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerAbilitySheet, { types: ["ability"], makeDefault: true, label: "OATHHAMMER.Sheet.Ability" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerOathSheet, { types: ["oath"], makeDefault: true, label: "OATHHAMMER.Sheet.Oath" })
|
||||
foundry.documents.collections.Items.registerSheet("fvtt-oath-hammer", applications.OathHammerConditionSheet, { types: ["condition"], makeDefault: true, label: "OATHHAMMER.Sheet.Condition" })
|
||||
|
||||
CONFIG.statusEffects = STATUS_EFFECTS
|
||||
|
||||
OathHammerUtils.registerHandlebarsHelpers()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user