mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
* . * . * Removed outcommented code * Raised to minor version * Added confirmation on import of old character data
35 lines
1,016 B
JavaScript
35 lines
1,016 B
JavaScript
import BaseDataItem from './base.mjs';
|
|
|
|
export default class DHFeature extends BaseDataItem {
|
|
/** @inheritDoc */
|
|
static get metadata() {
|
|
return foundry.utils.mergeObject(super.metadata, {
|
|
label: 'TYPES.Item.feature',
|
|
type: 'feature',
|
|
hasDescription: true,
|
|
hasResource: true,
|
|
hasActions: true
|
|
});
|
|
}
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
/**@override */
|
|
static DEFAULT_ICON = 'systems/daggerheart/assets/icons/documents/items/stars-stack.svg';
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
/** @inheritDoc */
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
...super.defineSchema(),
|
|
originItemType: new fields.StringField({
|
|
choices: CONFIG.DH.ITEM.featureTypes,
|
|
nullable: true,
|
|
initial: null
|
|
}),
|
|
identifier: new fields.StringField()
|
|
};
|
|
}
|
|
}
|