Added functionality

This commit is contained in:
WBHarry 2026-04-16 00:37:26 +02:00
parent 8808e4646d
commit 5e608dea99
12 changed files with 219 additions and 77 deletions

View file

@ -93,7 +93,26 @@ export default class BaseEffect extends foundry.data.ActiveEffectTypeDataModel {
max: new fields.NumberField({ integer: true, label: 'DAGGERHEART.GENERAL.max' })
},
{ nullable: true, initial: null }
)
),
area: new fields.SchemaField({
type: new fields.StringField({
nullable: false,
choices: CONFIG.DH.EFFECTS.areaTypes,
initial: CONFIG.DH.EFFECTS.areaTypes.placed.id,
label: 'DAGGERHEART.GENERAL.type'
}),
shape: new fields.StringField({
nullable: false,
choices: CONFIG.DH.GENERAL.templateTypes,
initial: CONFIG.DH.GENERAL.templateTypes.circle.id,
label: 'DAGGERHEART.ACTIVEEFFECT.Config.area.shape'
}),
size: new fields.StringField({
nullable: false,
initial: CONFIG.DH.GENERAL.range.veryClose.id,
label: 'DAGGERHEART.ACTIVEEFFECT.Config.area.size'
}),
}, { nullable: true, initial: null })
};
}