mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
* Small random fixes * Added use of ItemLinkFields * Multiclass levelup fixes * Fixed our onCreate methods unintentionally being run on all clients * Remade apps handling * Added for all class items and subclass * Restored foreignDocumentUuidField * Improved * PR fxies * Fixed tooltip enrichment * . * Reverted silly change
19 lines
609 B
JavaScript
19 lines
609 B
JavaScript
import ForeignDocumentUUIDField from './foreignDocumentUUIDField.mjs';
|
|
|
|
export default class ItemLinkFields extends foundry.data.fields.ArrayField {
|
|
constructor(options, context) {
|
|
super(new ItemLinkField(), options, context);
|
|
}
|
|
}
|
|
|
|
class ItemLinkField extends foundry.data.fields.SchemaField {
|
|
constructor(context) {
|
|
super(
|
|
{
|
|
type: new foundry.data.fields.StringField({ choices: CONFIG.DH.ITEM.featureSubTypes, nullable: true }),
|
|
item: new ForeignDocumentUUIDField({ type: 'Item' })
|
|
},
|
|
context
|
|
);
|
|
}
|
|
}
|