Template:Item/CoreStats: Difference between revisions

Support for damage element = Electric (will be needed after beta drops for Arc Winder)
m (update links that changed)
(Support for damage element = Electric (will be needed after beta drops for Arc Winder))
Line 19: Line 19:
-->{{#if: {{{damage|}}}
-->{{#if: {{{damage|}}}
|<div class="qud-item-stats-entry-wrap"><div class="qud-item-stats-entry qud-tooltip"><!--
|<div class="qud-item-stats-entry-wrap"><div class="qud-item-stats-entry qud-tooltip"><!--
--><div class="qud-item-stat-symbol">{{heart}}</div><!--
--><div class="qud-item-stat-symbol">{{#ifeq: {{{damageelement|}}} | Electric | {{heart|W}} | {{heart}} }}</div><!--
--><div class="qud-item-stat-value">{{{damage}}}</div><!--
--><div class="qud-item-stat-value">{{{damage}}}</div><!--
--><span class="qud-tooltip-text"><div>[[Damage]]{{#ifeq:{{{thrown|no}}}|yes|<span class="qud-thrown-pv-txt">&nbsp;(thrown)</span>}}</div>{{#invoke:dice/Format | diceStats | roll = {{{damage}}} | template = Tooltip_dice_mean_string}}{{#invoke:dice/Format | diceStats | roll = {{{damage}}} | template = Tooltip_dice_range_string}}</span><!--
--><span class="qud-tooltip-text"><div>[[Damage]]{{#ifeq:{{{thrown|no}}}|yes|<span class="qud-thrown-pv-txt">&nbsp;(thrown)</span>}}</div>{{#invoke:dice/Format | diceStats | roll = {{{damage}}} | template = Tooltip_dice_mean_string}}{{#invoke:dice/Format | diceStats | roll = {{{damage}}} | template = Tooltip_dice_range_string}}</span><!--
Line 79: Line 79:
| missile = no          <!-- if yes, maxpv won't be shown, because it's not applicable to missile weapons -->
| missile = no          <!-- if yes, maxpv won't be shown, because it's not applicable to missile weapons -->
| thrown = no            <!-- if yes, maxpv won't be shown, because it's not applicable to thrown weapons -->
| thrown = no            <!-- if yes, maxpv won't be shown, because it's not applicable to thrown weapons -->
| damage = 2d3
| damage = 2d3           <!-- also supports "damageelement" parameter; if equal to "Electric" will show a yellow heart instead of red -->
| av = 3
| av = 3
| dv = 2
| dv = 2
Line 148: Line 148:
| weight = 5
| weight = 5
| value = 800
| value = 800
| missile = yes
}}
</div>
=== {{Qud text|arc winder}} ===
<div style="width: 270px;font-size:90%;margin:1em 1em 4em 1em;color:var(--qud-color-y);">
{{Item/CoreStats
| damage = 4d4
| damageelement = Electric
| weight = 4
| value = 750
| missile = yes
| missile = yes
}}
}}