This commit is contained in:
WBHarry 2026-06-26 19:22:17 +02:00
parent 1017437480
commit e190d1961e
3 changed files with 73 additions and 0 deletions

View file

@ -233,6 +233,7 @@ export default class DhActiveEffectConfig extends foundry.applications.sheets.Ac
const systemData = {
rangeDependence: event.target.checked
? {
enabled: true, // Temporary while the onMove handling is still in
type: rangeFields.type.initial,
target: rangeFields.target.initial,
range: rangeFields.range.initial

View file

@ -57,6 +57,10 @@ export default class BaseEffect extends foundry.data.ActiveEffectTypeDataModel {
description: new fields.HTMLField({ label: 'DAGGERHEART.GENERAL.description' })
}),
rangeDependence: new fields.SchemaField({
enabled: new fields.BooleanField({ // Temporary for the remaining onMove logic
initial: false,
label: 'DAGGERHEART.GENERAL.enabled'
}),
type: new fields.StringField({
required: true,
choices: CONFIG.DH.GENERAL.rangeInclusion,