8,290
edits
m (fix fractional values) |
(support penetratingammo) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
-->{{#if: {{{pv|}}}{{{maxpv|}}}{{{vibro|}}} | -->{{#if: {{{pv|}}}{{{maxpv|}}}{{{vibro|}}} | ||
|<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">{{#if:{{{penetratingammo|}}}|{{PV|pierce}}|{{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]]){{#ifeq:{{{thrown|no}}}|yes|<br><span class="qud-thrown-pv-txt">when thrown</span>}} | <span class="qud-pv-tooltip-text">[[Penetration (PV)|PV]]{{#ifeq:{{{missile|no}}}|yes||{{#ifeq:{{{thrown|no}}}|yes|<span class="qud-thrown-pv-txt"> (thrown)</span>|<span class="qud-max-pv">/Max PV</span>}}}}</span>}}</span><!-- | ||
--></div></div> | --></div></div> | ||
}}<!-- | }}<!-- | ||
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]]</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"> (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><!-- | ||
--></div></div> | --></div></div> | ||
}}<!-- | }}<!-- | ||
Line 31: | Line 31: | ||
--><div class="qud-item-stat-symbol">{{AV}}</div><!-- | --><div class="qud-item-stat-symbol">{{AV}}</div><!-- | ||
--><div class="qud-item-stat-value">{{{av}}}</div><!-- | --><div class="qud-item-stat-value">{{{av}}}</div><!-- | ||
--><span class="qud-tooltip-text">[[AV|Armor Value]]</span><!-- | --><span class="qud-tooltip-text">[[Armor (AV)|Armor Value]]</span><!-- | ||
--></div></div> | --></div></div> | ||
}}<!-- | }}<!-- | ||
Line 68: | Line 68: | ||
--></div></includeonly><noinclude> | --></div></includeonly><noinclude> | ||
Outputs an item's core stats. Intended for use in [[Template:Item]. | Outputs an item's core stats. Intended for use in [[Template:Item]]. | ||
All parameters are optional. | All parameters are optional. | ||
Line 77: | Line 77: | ||
| maxpv = 6 <!-- if not specified, but pv is specified, 4 is used for this by default --> | | maxpv = 6 <!-- if not specified, but pv is specified, 4 is used for this by default --> | ||
| 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 --> | ||
| penetratingammo = no <!-- if yes, penetration arrow symbol is yellow (ex: Eigenrifle) --> | |||
| 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 --> | ||
| damage = 2d3 | | thrown = no <!-- if yes, maxpv won't be shown, because it's not applicable to thrown weapons --> | ||
| 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 147: | Line 149: | ||
| 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 | |||
}} | |||
</div> | |||
=== {{Qud text|eigenrifle}} === | |||
<div style="width: 270px;font-size:90%;margin:1em 1em 4em 1em;color:var(--qud-color-y);"> | |||
{{Item/CoreStats | |||
| pv = 12 | |||
| maxpv = 12 | |||
| penetratingammo = yes | |||
| damage = 1d12 | |||
| weight = 12 | |||
| value = 750 | |||
| missile = yes | | missile = yes | ||
}} | }} | ||
Line 158: | Line 184: | ||
}} | }} | ||
</div> | </div> | ||
</noinclude> | </noinclude> |