Template:CargoDamage/sub: Difference between revisions
From Official Barotrauma Wiki
m (first try looked promising, small fix.) |
m (adding weapondamagemodifier to lacerations) |
||
Line 4: | Line 4: | ||
| {{{magazine}}} | | {{{magazine}}} | ||
|{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!-- | |{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!-- | ||
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{lacerations}}}}}|{{{lacerations}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{lacerations}}})</small>|}}<br>|}}<!-- | |||
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}}{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}}{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{gunshotwound}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}} {{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<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>}}}}{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!-- | -->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||<!-- | ||
Affliction calculation | |||
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{lacerations}}}<!-- | |||
-->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}}<!-- | |||
-->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}}<!-- | |||
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{lacerations}}}}}}}<!-- | |||
Pellets and damage modifier display | |||
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{lacerations}}})</small>|}}<br>|}}<!-- | |||
-->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<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>}}}}<!-- | |||
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!-- | |||
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||<!-- | |||
Affliction calculation | |||
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}<!-- | |||
-->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}}<!-- | |||
-->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}}<!-- | |||
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{gunshotwound}}}}}}}<!-- | |||
Pellets and damage modifier display | |||
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}} <!-- | |||
-->{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<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>}}}}<!-- | |||
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<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>|}}<!-- | ||
-->{{#if: {{{organdamage|}}}|{{Affliction|Organ Damage|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{organdamage}}}}}|{{{organdamage}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{organdamage}}})</small>|}}<br>|}}<!-- | -->{{#if: {{{organdamage|}}}|{{Affliction|Organ Damage|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{organdamage}}}}}|{{{organdamage}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{organdamage}}})</small>|}}<br>|}}<!-- | ||
Line 34: | Line 57: | ||
{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}} | {{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}} | ||
{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}} | {{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}} | ||
{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}} | {{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}} | ||
{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}}{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}}{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}} | |||
Revision as of 06:34, 29 December 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}}}
| .