Template:CargoDamage/sub: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
m (small fix)
mNo edit summary
Line 8: Line 8:
Affliction calculation
Affliction calculation
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{lacerations}}}<!--
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{lacerations}}}<!--
  -->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}}<!--
  -->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|*{{{usedbyweapondamagemodifier}}}}}}}<!--
  -->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}}<!--
  -->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|*{{{usedby2weapondamagemodifier}}}}}}}<!--
  -->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{lacerations}}}}}}}<!--
  -->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{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><!--  
-->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedbyweapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedbyweapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedby2weapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby2weapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!--
-->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!--


-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||<!--
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||<!--
Affliction calculation
Affliction calculation
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}<!--
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}<!--
  -->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}}<!--
  -->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|*{{{usedbyweapondamagemodifier}}}}}}}<!--
  -->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}}<!--
  -->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|*{{{usedby2weapondamagemodifier}}}}}}}<!--
  -->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{gunshotwound}}}}}}}<!--
  -->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{gunshotwound}}}}}}}<!--
Pellets and damage modifier display
Pellets and damage modifier display
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}} <!--
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}} <!--
-->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedbyweapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedbyweapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedby2weapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby2weapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!--
-->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!--


-->{{#if: {{{deeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{deeptissueinjury}}}}}|{{{deeptissueinjury}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{deeptissueinjury}}})</small>|}}<br>|}}<!--
-->{{#if: {{{deeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{deeptissueinjury}}}}}|{{{deeptissueinjury}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{deeptissueinjury}}})</small>|}}<br>|}}<!--

Revision as of 06:39, 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: | Lacerations ({{{lacerations}}})* | 0% | {{{structuredamage}}} | .