change armor and weapon to be attachableItem

This commit is contained in:
psitacus 2025-07-11 18:50:21 -06:00
parent fbe551624d
commit 1fc136c81b
3 changed files with 15 additions and 6 deletions

View file

@ -0,0 +1,11 @@
import BaseDataItem from './base.mjs';
export default class AttachableItem extends BaseDataItem {
static defineSchema() {
const fields = foundry.data.fields;
return {
...super.defineSchema(),
attached: new fields.ArrayField(new fields.DocumentUUIDField({ type: "Item", nullable: true }))
};
}
}