Template:CargoDamage/sub: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 7: Line 7:
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||<!--
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||<!--
Affliction calculation
Affliction calculation
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{lacerations}}}<!--
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*<!--
  -->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|*{{{usedbyweapondamagemodifier}}}}}}}<!--
  -->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#expr:{{{lacerations}}}*{{{usedbyweapondamagemodifier}}}}}|{{{lacerations}}}}}<!--
  -->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|*{{{usedby2weapondamagemodifier}}}}}}}<!--
  -->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#expr:{{{lacerations}}}*{{{usedby2weapondamagemodifier}}}}}|{{{lacerations}}}}}<!--
  -->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{lacerations}}}}}}}<!--
  -->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#expr:{{{lacerations}}}*{{{usedby3weapondamagemodifier}}}}}|{{{lacerations}}}}}}}|{{{lacerations}}}}}}}<!--
Pellets and damage modifier display
Pellets and damage modifier display
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{lacerations}}})</small><!--  
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{lacerations}}})</small><!--  

Revision as of 06:45, 29 December 2022

Documentation

This template is used by Template:CargoDamage to display individual rows. It is not meant for direct usage.

See Also

|- | style="text-align:center;" | [[File:{{{name}}}.png|50px]]
[[{{{name}}}]] | {{{magazine}}} |{{#if: |{{Affliction|Lacerations|||{{#if: |{{#expr:{{{pellets}}}* | 0% | {{{structuredamage}}} | .