mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
* New labels. Time to print them somewhere. * Action buttons have icons. Pretty Iconic * Features tweaked to support only on limited actors * Duplicate ActionTypes+references are removed. * Adversary and Environment SRD entries updated. * Updated name field workflow in character actor. * Adversary name fields are improved as well. * Revert "Updated name field workflow in character actor." This reverts commit66924c530f. * Revert "Adversary name fields are improved as well." This reverts commitf60e8cffda. * Fixed prototype token in Abandoned Grove * Label change --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
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
|
|
}),
|
|
multiclassOrigin: new fields.BooleanField({ initial: false }),
|
|
identifier: new fields.StringField(),
|
|
featureForm: new fields.StringField({
|
|
required: true,
|
|
initial: 'passive',
|
|
choices: CONFIG.DH.ITEM.featureForm,
|
|
label: 'DAGGERHEART.CONFIG.FeatureForm.label'
|
|
})
|
|
};
|
|
}
|
|
}
|