Template:CargoDamage/sub: Difference between revisions
From Official Barotrauma Wiki
Tag: Undo |
(pellets x explo afflictions) |
||
Line 21: | Line 21: | ||
-->{{#if: {{{stun|}}}|{{Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{stun}}}}}s|{{{stun}}}s}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{stun}}})</small>|}}|}}<!-- | -->{{#if: {{{stun|}}}|{{Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{stun}}}}}s|{{{stun}}}s}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{stun}}})</small>|}}|}}<!-- | ||
-->{{#if: {{{explosionrange|}}}|<br>Explosion:<br><!-- | -->{{#if: {{{explosionrange|}}}|<br>Explosion:<br><!-- | ||
-->{{#if: {{{explosionradiationsickness|}}}|{{Affliction|Radiation Sickness|||{{{explosionradiationsickness}}}}}<br>|}}<!-- | -->{{#if: {{{explosionradiationsickness|}}}|{{Affliction|Radiation Sickness|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionradiationsickness}}}}}s|{{{explosionradiationsickness}}}s}}}}<br>|}}<!-- | ||
-->{{#if: {{{explosiondeeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{{explosiondeeptissueinjury}}}}}<br>|}}<!-- | -->{{#if: {{{explosiondeeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosiondeeptissueinjury}}}}}s|{{{explosiondeeptissueinjury}}}s}}}}<br>|}}<!-- | ||
-->{{#if: {{{explosionburn|}}}|{{Affliction|Burn|||{{{explosionburn}}}}}<br>|}}<!-- | -->{{#if: {{{explosionburn|}}}|{{Affliction|Burn|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionburn}}}}}s|{{{explosionburn}}}s}}}}<br>|}}<!-- | ||
-->{{#if: {{{explosionlacerations|}}}|{{Affliction|Lacerations|||{{{explosionlacerations}}}}}<br>|}}<!-- | -->{{#if: {{{explosionlacerations|}}}|{{Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionlacerations}}}}}s|{{{explosionlacerations}}}s}}}}<br>|}}<!-- | ||
-->{{#if: {{{explosionbleeding|}}}|{{Affliction|Bleeding|||{{{explosionbleeding}}}}}<br>|}}<!-- | -->{{#if: {{{explosionbleeding|}}}|{{Affliction|Bleeding|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionbleeding}}}}}s|{{{explosionbleeding}}}s}}}}<br>|}}<!-- | ||
-->{{#if: {{{explosionstun|}}}|{{Affliction|Stun|||{{{explosionstun}}}s}}|}}|}} | -->{{#if: {{{explosionstun|}}}|{{Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionstun}}}}}s|{{{explosionstun}}}s}}}}|}}|}} | ||
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}} | | {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}} | ||
| {{#if: {{{explosionrange|}}}|Impact:|}} {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{structuredamage}}}}} <small>({{{pellets}}}x{{{structuredamage}}})</small>|{{{structuredamage}}}}}{{#if: {{{explosionrange|}}}|<br>Explosion: {{{explosionstructuredamage}}}|}} | | {{#if: {{{explosionrange|}}}|Impact:|}} {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{structuredamage}}}}} <small>({{{pellets}}}x{{{structuredamage}}})</small>|{{{structuredamage}}}}}{{#if: {{{explosionrange|}}}|<br>Explosion: {{{explosionstructuredamage}}}|}} | ||
| {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}} | | {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}} | ||
</onlyinclude> | </onlyinclude> |
Revision as of 08:56, 21 June 2022
This template is used by Template:CargoDamage to display individual rows. It is not meant for direct usage.
See Also
The above documentation is transcluded from Template:CargoDamage/sub/doc. (edit | history)
|-
| style="text-align:center;" | [[File:{{{name}}}.png|50px]]
[[{{{name}}}]]
| {{{magazine}}}
|
| 0%
| {{{structuredamage}}}
| .