[Fix] Homebrew Item Features (#1365)

* Fixed adding and editing effects on a homebrew feature

* .

* Fixed effect removal
This commit is contained in:
WBHarry 2025-12-06 02:29:56 +01:00 committed by GitHub
parent cb10b18e06
commit 9fa4627b19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 411 additions and 252 deletions

View file

@ -8,7 +8,7 @@
<div class="settings-items">
{{#each move.effects}}
{{> "systems/daggerheart/templates/settings/components/settings-item-line.hbs" id=this.id type="effect" }}
{{> "systems/daggerheart/templates/settings/components/settings-item-line.hbs" actionId=../move.id id=this.id type="effect" }}
{{/each}}
</div>
</fieldset>

View file

@ -4,10 +4,11 @@
{{formGroup fields.disabled value=source.disabled rootId=rootId}}
{{#if isActorEffect}}
{{formGroup fields.origin value=source.origin rootId=rootId disabled=true}}
{{formGroup fields.origin value=source.origin rootId=rootId disabled=true}}
{{/if}}
{{#if isItemEffect}}
{{formGroup fields.transfer value=source.transfer rootId=rootId label=legacyTransfer.label hint=(localize "DAGGERHEART.EFFECTS.Attachments.transferHint")}}
{{formGroup fields.transfer value=source.transfer rootId=rootId label=legacyTransfer.label hint=(localize "DAGGERHEART.EFFECTS.Attachments.transferHint")}}
{{/if}}
{{formGroup fields.statuses value=source.statuses options=statuses rootId=rootId classes="statuses"}}