Template:Item/CoreStats: Difference between revisions

account for thrown weapons
m (fix fractional values)
(account for thrown weapons)
Line 10: Line 10:
|<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">{{PV}}</div><!--
--><div class="qud-item-stat-symbol">{{PV}}</div><!--
--><div class="qud-item-stat-value">{{#ifeq: {{{vibro|}}} | yes | <span class="symbol-vibro">≈</span> | {{{pv|4}}}{{#ifeq:{{{missile|no}}}|yes||<span class="qud-max-pv">/{{{maxpv|4}}}</span>}} }}</div><!--
--><div class="qud-item-stat-value">{{#ifeq: {{{vibro|}}} | yes | <span class="symbol-vibro">≈</span> | {{{pv|4}}}{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes||<span class="qud-max-pv">/{{{maxpv|4}}}</span>}}}} }}</div><!--
--><span class="qud-tooltip-text">{{#ifeq: {{{vibro|}}} | yes | Adaptive PV<br>([[Vibro]]) | <span class="qud-pv-tooltip-text">[[PV]]{{#ifeq:{{{missile|no}}}|yes||<span class="qud-max-pv">/Max PV</span>}}</span>}}</span><!--
--><span class="qud-tooltip-text">{{#ifeq: {{{vibro|}}} | yes | Adaptive PV<br>([[Vibro]]) | <span class="qud-pv-tooltip-text">[[PV]]{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes||<span class="qud-max-pv">/Max PV</span>}}}}</span>}}</span><!--
--></div></div>
--></div></div>
}}<!--
}}<!--
Line 78: Line 78:
| vibro = no            <!-- if yes, vibro penetration symbol is shown and pv/maxpv are ignored -->
| vibro = no            <!-- if yes, vibro penetration symbol is shown and pv/maxpv are ignored -->
| 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 -->
| damage = 2d3
| damage = 2d3
| av = 3
| av = 3