Implement the Attribute sheet for editing

This commit is contained in:
Oliver 2026-04-25 19:30:38 -06:00
parent 599789ec13
commit e8c73de6bd
8 changed files with 242 additions and 0 deletions

View file

@ -1,4 +1,5 @@
// Apps
import { AttributeItemSheet } from "../apps/AttributeItemSheet.mjs";
import { AttributeOnlyPlayerSheet } from "../apps/AttributeOnlyPlayerSheet.mjs";
import { GenericItemSheet } from "../apps/GenericItemSheet.mjs";
import { PlayerSheet } from "../apps/PlayerSheet.mjs";
@ -68,6 +69,15 @@ Hooks.on(`init`, () => {
label: `taf.sheet-names.GenericItemSheet`,
},
);
foundry.documents.collections.Items.registerSheet(
__ID__,
AttributeItemSheet,
{
types: [`attribute`],
makeDefault: true,
label: `taf.sheet-names.AttributeItemSheet`,
},
);
// #endregion Sheets
registerWorldSettings();