registration things

This commit is contained in:
Nikhil Nagarajan 2026-01-14 17:00:40 -05:00
parent a0f1441373
commit e1d89999d7
5 changed files with 17 additions and 2 deletions

View file

@ -95,7 +95,7 @@ Hooks.once('init', () => {
type: game.i18n.localize(typePath)
});
const { Items, Actors } = foundry.documents.collections;
const { Items, Actors, RollTables } = foundry.documents.collections;
Items.unregisterSheet('core', foundry.applications.sheets.ItemSheetV2);
Items.registerSheet(SYSTEM.id, applications.sheets.items.Ancestry, {
types: ['ancestry'],
@ -180,6 +180,12 @@ Hooks.once('init', () => {
label: sheetLabel('TYPES.Actor.party')
});
RollTables.unregisterSheet('core', foundry.applications.sheets.RollTableSheet);
RollTables.registerSheet(SYSTEM.id, applications.sheets.RollTableSheet, {
types: ['base'],
makeDefault: true,
});
DocumentSheetConfig.unregisterSheet(
CONFIG.ActiveEffect.documentClass,
'core',