{#each effects as effect, index} {@const labelCanUseTarget = allowTargetLabelFallback && ['Attribute', 'Ability'].includes(effect.type)}
EFFECT {String(index + 1).padStart(2, '0')}
changeType(index, values[0])} required /> {#if effect.type === 'Attribute'}
ATTRIBUTE TARGET
{:else if effect.type === 'Ability'}
CLASS ABILITY TARGET
{:else}
CUSTOM MECHANICRecorded for display now and calculation support later.
{/if}
{:else}
{emptyLabel}Add structured values when this mechanic should contribute to calculations or an ability preview.
{/each}