Various fixes and add rune support
This commit is contained in:
@@ -108,4 +108,5 @@
|
||||
}}
|
||||
</fieldset>
|
||||
{{/if}}
|
||||
{{> "systems/fvtt-oath-hammer/templates/item/rune-zone.hbs"}}
|
||||
</section>
|
||||
@@ -24,4 +24,7 @@
|
||||
<legend>{{localize "OATHHAMMER.Label.Effect"}}</legend>
|
||||
{{formInput systemFields.effect enriched=enrichedEffect value=system.effect name="system.effect" toggled=true}}
|
||||
</fieldset>
|
||||
{{#if (eq system.itemType "talisman")}}
|
||||
{{> "systems/fvtt-oath-hammer/templates/item/rune-zone.hbs"}}
|
||||
{{/if}}
|
||||
</section>
|
||||
|
||||
38
templates/item/rune-zone.hbs
Normal file
38
templates/item/rune-zone.hbs
Normal file
@@ -0,0 +1,38 @@
|
||||
{{!-- Runic attachment zone — included in armor, weapon, magic-item (talisman) sheets --}}
|
||||
<fieldset class="rune-zone">
|
||||
<legend><i class="fa-solid fa-star-of-david"></i> {{localize "OATHHAMMER.Label.Runes"}}</legend>
|
||||
|
||||
{{#if enrichedRunes.length}}
|
||||
<ul class="rune-list">
|
||||
{{#each enrichedRunes as |rune|}}
|
||||
<li class="rune-entry {{#if rune.isExalted}}rune-exalted{{/if}}">
|
||||
<img class="rune-img" src="{{rune.img}}" alt="{{rune.name}}" />
|
||||
<span class="rune-name">{{rune.name}}</span>
|
||||
{{#if rune.isExalted}}
|
||||
<span class="rune-badge-exalted" data-tooltip="{{localize 'OATHHAMMER.Label.Exalted'}}">✦</span>
|
||||
{{/if}}
|
||||
<span class="rune-dv" data-tooltip="{{localize 'OATHHAMMER.Label.DifficultyValue'}}">DV{{rune.difficultyValue}}</span>
|
||||
{{#if rune.duration}}
|
||||
<span class="rune-duration">{{rune.duration}}</span>
|
||||
{{/if}}
|
||||
<a class="rune-effect-toggle"
|
||||
data-action="openRune"
|
||||
data-source-uuid="{{rune.sourceUuid}}"
|
||||
data-tooltip="{{localize 'OATHHAMMER.Label.OpenRune'}}"
|
||||
data-tooltip-direction="UP">
|
||||
<i class="fa-solid fa-circle-info"></i>
|
||||
</a>
|
||||
<a class="rune-remove" data-action="removeRune" data-rune-index="{{rune.idx}}"
|
||||
data-tooltip="{{localize 'OATHHAMMER.Label.RemoveRune'}}">
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
|
||||
<div class="rune-drop-zone">
|
||||
<i class="fa-solid fa-wand-sparkles"></i>
|
||||
<span>{{localize "OATHHAMMER.Label.DropRuneHint"}}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -78,4 +78,5 @@
|
||||
{{formInput systemFields.magicEffect enriched=enrichedMagicEffect value=system.magicEffect name="system.magicEffect" toggled=true}}
|
||||
</fieldset>
|
||||
{{/if}}
|
||||
{{> "systems/fvtt-oath-hammer/templates/item/rune-zone.hbs"}}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user