Template:CargoDamage/row: Difference between revisions
From Official Barotrauma Wiki
Tag: Undo |
(Support for new afflictions) |
||
Line 2: | Line 2: | ||
|- | |- | ||
| style="text-align:center;" | [[File:{{{name}}}.png|50px]] <br> [[{{{name}}}]] | | style="text-align:center;" | [[File:{{{name}}}.png|50px]] <br> [[{{{name}}}]] | ||
| {{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{{bluntforcetrauma}}}}} <small>({{#expr: {{{bluntforcetrauma}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- <br> are here because 99% of the time stun is last, and there's no <br> after stun here. Sketchy, but haven't found a better way yet. | | {{#if:{{{afflictions|}}}|{{AfflictionDisplayTest|afflictions={{{afflictions|}}}|explosionafflictions={{{explosionafflictions|}}}|explosionrange={{{explosionrange|}}}|projectiles={{{projectiles|}}}|weapondamagemodifier={{{weapondamagemodifier|}}}}}}}<!-- | ||
-->{{#if:{{#ifeq:{{{afflictions|}}}||1}}{{#ifeq:{{{afflictions|}}}|yes|1}}|<!-- | |||
-->{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{{bluntforcetrauma}}}}} <small>({{#expr: {{{bluntforcetrauma}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- <br> are here because 99% of the time stun is last, and there's no <br> after stun here. Sketchy, but haven't found a better way yet. | |||
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{{lacerations}}}}} <small>({{#expr: {{{lacerations}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- this means that in the remaining 1% cases, there will be an empty line at the end of the cell (when there's no stun e.g. coilgun ammo etc | -->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{{lacerations}}}}} <small>({{#expr: {{{lacerations}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- this means that in the remaining 1% cases, there will be an empty line at the end of the cell (when there's no stun e.g. coilgun ammo etc | ||
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{{gunshotwound}}}}} <small>({{#expr: {{{gunshotwound}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- | -->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{{gunshotwound}}}}} <small>({{#expr: {{{gunshotwound}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- | ||
Line 19: | Line 23: | ||
-->{{#if: {{{paralysis|}}}|{{Affliction|Paralysis|||{{{paralysis}}}}}<br>|}}<!-- no dps needed | -->{{#if: {{{paralysis|}}}|{{Affliction|Paralysis|||{{{paralysis}}}}}<br>|}}<!-- no dps needed | ||
-->{{#if: {{{progressivestun|}}}|{{Affliction|Progressive Stun|||{{{progressivestun}}}}}<br>|}}<!-- no dps needed | -->{{#if: {{{progressivestun|}}}|{{Affliction|Progressive Stun|||{{{progressivestun}}}}}<br>|}}<!-- no dps needed | ||
-->{{#if: {{{stun|}}}|{{Affliction|Stun|||{{#expr: {{{stun}}} round 1}}s}}|}} | -->{{#if: {{{stun|}}}|{{Affliction|Stun|||{{#expr: {{{stun}}} round 1}}s}}|}}<!-- | ||
-->}} | |||
| {{{attackspeed}}} | | {{{attackspeed}}} | ||
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}} | | {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}} | ||
</onlyinclude> | </onlyinclude> |
Revision as of 19:05, 20 April 2023
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/row/doc. (edit | history)
|-
| style="text-align:center;" | [[File:{{{name}}}.png|50px]]
[[{{{name}}}]]
|
| {{{attackspeed}}}
| 0%