mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 19:51:08 +01:00
* Fixed so the damage calculation is correct. Fixed so the right tooltip is shown for attacks * Moved the damageFormula function to damageAction
40 lines
No EOL
1.9 KiB
Handlebars
40 lines
No EOL
1.9 KiB
Handlebars
<div class="daggerheart dh-style tooltip">
|
|
<h2 class="tooltip-title">{{item.name}}</h2>
|
|
<img class="tooltip-image" src="{{item.img}}" />
|
|
<div class="tooltip-description">{{{description}}}</div>
|
|
|
|
<div class="tooltip-information-section">
|
|
<div class="tooltip-information">
|
|
<label>{{localize "DAGGERHEART.ITEMS.Weapon.weaponType"}}</label>
|
|
<div>{{#if item.system.secondary}}{{localize "DAGGERHEART.ITEMS.Weapon.secondaryWeapon"}}{{else}}{{localize "DAGGERHEART.ITEMS.Weapon.primaryWeapon"}}{{/if}}</div>
|
|
</div>
|
|
<div class="tooltip-information">
|
|
<label>{{localize "DAGGERHEART.GENERAL.burden"}}</label>
|
|
{{#with (lookup config.GENERAL.burden item.system.burden) as | burden |}}
|
|
<div>{{localize burden.label}}</div>
|
|
{{/with}}
|
|
</div>
|
|
{{#if item.system.attack.roll.trait}}
|
|
<div class="tooltip-information">
|
|
<label>{{localize "DAGGERHEART.GENERAL.Trait.single"}}</label>
|
|
{{#with (lookup config.ACTOR.abilities item.system.attack.roll.trait) as | trait |}}
|
|
<div>{{localize trait.label}}</div>
|
|
{{/with}}
|
|
</div>
|
|
{{/if}}
|
|
<div class="tooltip-information">
|
|
<label>{{localize "DAGGERHEART.GENERAL.range"}}</label>
|
|
{{#with (lookup config.GENERAL.range item.system.attack.range) as | range |}}
|
|
<div>{{localize range.label}}</div>
|
|
{{/with}}
|
|
</div>
|
|
<div class="tooltip-information">
|
|
<label>{{localize "DAGGERHEART.GENERAL.damage"}}</label>
|
|
<div>{{{damageFormula item.system.attack}}}</div>
|
|
</div>
|
|
<div class="tooltip-information">
|
|
<label>{{localize "DAGGERHEART.GENERAL.damageType"}}</label>
|
|
<div>{{{damageSymbols item.system.attack.damage.parts}}}</div>
|
|
</div>
|
|
</div>
|
|
</div> |