Make a unique ArmourSheet so that it can have a better UX for indicating protection locations
This commit is contained in:
parent
2b88bcc2ef
commit
94942c8eab
9 changed files with 407 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// Applications
|
||||
import { AllItemSheetV1 } from "../Apps/ItemSheets/AllItemSheetV1.mjs";
|
||||
import { ArmourSheet } from "../Apps/ItemSheets/ArmourSheet.mjs";
|
||||
import { CombinedHeroSheet } from "../Apps/ActorSheets/CombinedHeroSheet.mjs";
|
||||
import { CraftCardV1 } from "../Apps/ActorSheets/CraftCardV1.mjs";
|
||||
import { DelveDiceHUD } from "../Apps/DelveDiceHUD.mjs";
|
||||
|
|
@ -37,7 +38,6 @@ import { registerUserSettings } from "../settings/userSettings.mjs";
|
|||
import { registerWorldSettings } from "../settings/worldSettings.mjs";
|
||||
|
||||
const { Items, Actors } = foundry.documents.collections;
|
||||
const { ItemSheet, ActorSheet } = foundry.appv1.sheets;
|
||||
|
||||
Hooks.once(`init`, () => {
|
||||
Logger.log(`Initializing`);
|
||||
|
|
@ -74,10 +74,6 @@ Hooks.once(`init`, () => {
|
|||
// #endregion
|
||||
|
||||
// #region Sheets
|
||||
// Unregister core sheets
|
||||
Items.unregisterSheet(`core`, ItemSheet);
|
||||
Actors.unregisterSheet(`core`, ActorSheet);
|
||||
|
||||
// #region Actors
|
||||
Actors.registerSheet(game.system.id, CombinedHeroSheet, {
|
||||
makeDefault: true,
|
||||
|
|
@ -114,6 +110,13 @@ Hooks.once(`init`, () => {
|
|||
label: `RipCrypt.sheet-names.AllItemsSheetV1`,
|
||||
themes: AllItemSheetV1.themes,
|
||||
});
|
||||
|
||||
Items.registerSheet(game.system.id, ArmourSheet, {
|
||||
makeDefault: true,
|
||||
types: [`armour`],
|
||||
label: `RipCrypt.sheet-names.ArmourSheet`,
|
||||
themes: ArmourSheet.themes,
|
||||
});
|
||||
// #endregion
|
||||
// #endregion
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue