Completed

This commit is contained in:
WBHarry 2026-04-19 15:20:38 +02:00
parent 58b855389d
commit 774141a8da
8 changed files with 94 additions and 66 deletions

View file

@ -9,6 +9,11 @@ export default class AreaField extends fields.ArrayField {
/** @inheritDoc */
constructor(options = {}, context = {}) {
const element = new fields.SchemaField({
name: new fields.StringField({
nullable: false,
initial: 'Area',
label: 'DAGGERHEART.GENERAL.name'
}),
type: new fields.StringField({
nullable: false,
choices: CONFIG.DH.ACTIONS.areaTypes,

View file

@ -281,8 +281,14 @@ export function ActionMixin(Base) {
name: this.name,
img: this.baseAction ? this.parent.parent.img : this.img,
tags: this.tags ? this.tags : ['Spell', 'Arcana', 'Lv 10'],
area: this.area,
summon: this.summon
},
source: {
actor: this.actor.uuid,
item: this.item.id,
action: this.id,
},
itemOrigin: this.item,
description: this.description || (this.item instanceof Item ? this.item.system.description : '')
};