mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
[Feature] Active Effects toggle effects based in token distance (#452)
* Added the ability for effects to automatically activate/deactivate depending on range between tokens * Fixed to use Foundry's measuring instead. * .
This commit is contained in:
parent
18fac18df3
commit
46baef65a6
12 changed files with 162 additions and 29 deletions
40
templates/sheets/activeEffect/settings.hbs
Normal file
40
templates/sheets/activeEffect/settings.hbs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<section class="tab{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.ACTIVEEFFECT.Config.rangeDependence.title"}}</legend>
|
||||
|
||||
{{formGroup document.system.schema.fields.rangeDependence.fields.enabled value=source.system.rangeDependence.enabled localize=true }}
|
||||
{{formGroup document.system.schema.fields.rangeDependence.fields.type value=source.system.rangeDependence.type localize=true }}
|
||||
{{formGroup document.system.schema.fields.rangeDependence.fields.target value=source.system.rangeDependence.target localize=true }}
|
||||
{{formGroup document.system.schema.fields.rangeDependence.fields.range value=source.system.rangeDependence.range localize=true }}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
{{formGroup fields.duration.fields.seconds value=source.duration.seconds rootId=rootId}}
|
||||
{{formGroup fields.duration.fields.startTime value=source.duration.startTime rootId=rootId}}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<div class="form-group">
|
||||
<label>{{localize "EFFECT.DurationTurns"}}</label>
|
||||
<div class="form-fields">
|
||||
<label for="{{rootId}}-duration.rounds">{{localize "EFFECT.FIELDS.duration.rounds.label"}}</label>
|
||||
{{formInput fields.duration.fields.rounds value=source.duration.rounds
|
||||
id=(concat rootId "-duration.rounds")}}
|
||||
<label for="{{rootId}}-duration.turns">{{localize "EFFECT.FIELDS.duration.turns.label"}}</label>
|
||||
{{formInput fields.duration.fields.turns value=source.duration.turns
|
||||
id=(concat rootId "-duration.turns")}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "EFFECT.StartTurns"}}</label>
|
||||
<div class="form-fields">
|
||||
<label for="{{rootId}}-duration.startRound">{{localize "EFFECT.FIELDS.duration.startRound.label"}}</label>
|
||||
{{formInput fields.duration.fields.startRound value=source.duration.startRound
|
||||
id=(concat rootId "-duration.startRound")}}
|
||||
<label for="{{rootId}}-duration.startTurn">{{localize "EFFECT.FIELDS.duration.startTurn.label"}}</label>
|
||||
{{formInput fields.duration.fields.startTurn value=source.duration.startTurn
|
||||
id=(concat rootId "-duration.startTurn")}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue