Template:CargoDamage/sub: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
(Added support for weapondamagemodifier for all afflictions + changed the format they get displayed in (Had to make the CargoDamage/Affliction template for that). Lemme know if something is broken.)
Line 7: Line 7:
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedby3weapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedby3weapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--


-->{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!--
The red </div>'s begin in the CargoDamage/Affliction template to make displaying 2 lines of text next to the image possible. Don't worry about them. (And don't delete)


-->{{#if: {{{bluntforcetrauma|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{bluntforcetrauma}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{bluntforcetrauma}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{bluntforcetrauma}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{bluntforcetrauma}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--


-->{{#if: {{{lacerations|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}}}<br><!--
-->{{#if: {{{lacerations|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{lacerations}}} x {{{pellets}}} pellets{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{lacerations}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--  
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{lacerations}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{lacerations}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--  


-->{{#if: {{{gunshotwound|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Gunshot Wound|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{gunshotwound}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{gunshotwound}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{gunshotwound}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{gunshotwound}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{deeptissueinjury|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{deeptissueinjury}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{deeptissueinjury}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{deeptissueinjury}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{deeptissueinjury}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{organdamage|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Organ Damage|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{organdamage}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{organdamage}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{organdamage}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{organdamage}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{burn|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Burn|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{burn}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{burn}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{burn}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{burn}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{bleeding|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Bleeding|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{bleeding}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{bleeding}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{bleeding}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{bleeding}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{oxygenlow|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Oxygen Low|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{oxygenlow}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{oxygenlow}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{oxygenlow}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{oxygenlow}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{huskinfection|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Husk Infection|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{huskinfection}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{huskinfection}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{huskinfection}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{huskinfection}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{morbusinepoisoning|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Morbusine Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{morbusinepoisoning}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{morbusinepoisoning}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{morbusinepoisoning}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{morbusinepoisoning}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{sufforinpoisoning|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Sufforin Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{sufforinpoisoning}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{sufforinpoisoning}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{sufforinpoisoning}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{sufforinpoisoning}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{deliriuminepoisoning|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Deliriumine Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{deliriuminepoisoning}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{deliriuminepoisoning}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{deliriuminepoisoning}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{deliriuminepoisoning}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{cyanidepoisoning|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Cyanide Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{cyanidepoisoning}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{cyanidepoisoning}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{cyanidepoisoning}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{cyanidepoisoning}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{radiationsickness|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Radiation Sickness|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{radiationsickness}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{radiationsickness}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{radiationsickness}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{radiationsickness}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{paralysis|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Paralysis|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{paralysis}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{paralysis}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{paralysis}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{paralysis}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{progressivestun|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Progressive Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{progressivestun}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{progressivestun}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{progressivestun}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{progressivestun}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->{{#if: {{{stun|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{stun}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{stun}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{stun}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{stun}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--


-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}}}|{{{gunshotwound}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}}<br>|}}<!--
-->{{#if: {{{deeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{deeptissueinjury}}}}}|{{{deeptissueinjury}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{deeptissueinjury}}})</small>|}}<br>|}}<!--
-->{{#if: {{{organdamage|}}}|{{Affliction|Organ Damage|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{organdamage}}}}}|{{{organdamage}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{organdamage}}})</small>|}}<br>|}}<!--
-->{{#if: {{{burn|}}}|{{Affliction|Burn|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{burn}}}}}|{{{burn}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{burn}}})</small>|}}<br>|}}<!--
-->{{#if: {{{bleeding|}}}|{{Affliction|Bleeding|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bleeding}}}}}|{{{bleeding}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bleeding}}})</small>|}}<br>|}}<!--
-->{{#if: {{{oxygenlow|}}}|{{Affliction|Oxygen Low|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{oxygenlow}}}}}|{{{oxygenlow}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{oxygenlow}}})</small>|}}<br>|}}<!--
-->{{#if: {{{huskinfection|}}}|{{Affliction|Husk Infection|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{huskinfection}}}}}|{{{huskinfection}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{huskinfection}}})</small>|}}<br>|}}<!--
-->{{#if: {{{morbusinepoisoning|}}}|{{Affliction|Morbusine Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{morbusinepoisoning}}}}}|{{{morbusinepoisoning}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{morbusinepoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{sufforinpoisoning|}}}|{{Affliction|Sufforin Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{sufforinpoisoning}}}}}|{{{sufforinpoisoning}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{sufforinpoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{deliriuminepoisoning|}}}|{{Affliction|Deliriumine Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{deliriuminepoisoning}}}}}|{{{deliriuminepoisoning}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{deliriuminepoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{cyanidepoisoning|}}}|{{Affliction|Cyanide Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{cyanidepoisoning}}}}}|{{{cyanidepoisoning}}}}}}} {{#if: {{{pellets}}}|<small>({{{pellets}}}x{{{cyanidepoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{radiationsickness|}}}|{{Affliction|Radiation Sickness|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{radiationsickness}}}}}|{{{radiationsickness}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{radiationsickness}}})</small>|}}<br>|}}<!--
-->{{#if: {{{paralysis|}}}|{{Affliction|Paralysis|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{paralysis}}}}}|{{{paralysis}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{paralysis}}})</small>|}}<br>|}}<!--
-->{{#if: {{{progressivestun|}}}|{{Affliction|Progressive Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{progressivestun}}}}}|{{{progressivestun}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{progressivestun}}})</small>|}}<br>|}}<!--
-->{{#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|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionradiationsickness}}}}}|{{{explosionradiationsickness}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionradiationsickness}}})</small>|}}<br>|}}<!--
 
-->{{#if: {{{explosiondeeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosiondeeptissueinjury}}}}}|{{{explosiondeeptissueinjury}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosiondeeptissueinjury}}})</small>|}}<br>|}}<!--
-->{{#if: {{{explosionradiationsickness|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Radiation Sickness|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{explosionradiationsickness}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{explosionradiationsickness}}}}}}}}}<br><!--
-->{{#if: {{{explosionburn|}}}|{{Affliction|Burn|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionburn}}}}}|{{{explosionburn}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionburn}}})</small>|}}<br>|}}<!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{explosionradiationsickness}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{explosionradiationsickness}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--  
-->{{#if: {{{explosionlacerations|}}}|{{Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionlacerations}}}}}|{{{explosionlacerations}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionlacerations}}})</small>|}}<br>|}}<!--
 
-->{{#if: {{{explosionbleeding|}}}|{{Affliction|Bleeding|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionbleeding}}}}}|{{{explosionbleeding}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionbleeding}}})</small>|}}<br>|}}<!--
-->{{#if: {{{explosiondeeptissueinjury|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{explosiondeeptissueinjury}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{explosiondeeptissueinjury}}}}}}}}}<br><!--
-->{{#if: {{{explosionstun|}}}|{{Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionstun}}}}}s|{{{explosionstun}}}s}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionstun}}})</small>|}}|}}|}}
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{explosiondeeptissueinjury}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{explosiondeeptissueinjury}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--  
 
-->{{#if: {{{explosionburn|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Burn|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{explosionburn}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{explosionburn}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{explosionburn}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{explosionburn}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--  
 
-->{{#if: {{{explosionlacerations|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{explosionlacerations}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{explosionlacerations}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{explosionlacerations}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{explosionlacerations}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--  
 
-->{{#if: {{{explosionbleeding|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Bleeding|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{explosionbleeding}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{explosionbleeding}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{explosionbleeding}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{explosionbleeding}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--  
 
-->{{#if: {{{explosionstun|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{explosionstun}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{explosionstun}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{explosionstun}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{explosionstun}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}|}}
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}}
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}}
| {{#if: {{{explosionrange|}}}|{{#if:{{{structuredamage}}}|Impact:|}}|}} {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{structuredamage}}}}} <small>({{{pellets}}}x{{{structuredamage}}})</small>|{{{structuredamage}}}}}{{#if: {{{explosionrange|}}}|<br>Explosion: {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionstructuredamage}}}}} <small>({{{pellets}}}x{{{explosionstructuredamage}}})</small>|{{{explosionstructuredamage}}}}}|}}
| {{#if: {{{explosionrange|}}}|{{#if: {{{structuredamage}}}|{Impact:|}}|}} {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{structuredamage}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{structuredamage}}}}}}}}}<br>
{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{structuredamage}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{structuredamage}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}<!--
 
-->{{#if: {{{explosionrange|}}}|<br>Explosion: {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{explosionstructuredamage}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{explosionstructuredamage}}}}}}}}}<br><!--
-->{{#if: {{{pellets|}}}|<sup>({{{pellets}}} pellets x {{{explosionstructuredamage}}}{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{explosionstructuredamage}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}
 
| {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}}
| {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}}
</onlyinclude>
</onlyinclude> <!-- this is caused by the red </div>'s. -->

Revision as of 10:58, 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}}} | | 0% | Expression error: Unexpected * operator.}}
({{{structuredamage}}} x weapon damage modifier)
({{{explosionstructuredamage}}} x weapon damage modifier)

| .