Template:AfflictionDisplay/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
 
Line 15: Line 15:
| 3 || Affliction chance || 0.5 || ||  
| 3 || Affliction chance || 0.5 || ||  
|-
|-
| 4 || Projectiles || 8 || ||  
| 4 || Projectiles
*Not shown if = 1.
|| 8 || || 1
|-
|-
| 5 || Weapon damage modifier || 1.1 || ||  
| 5 || Weapon damage modifier
*Not shown if = 1.
|| 1.1 || || 1
|-
|-
|}
|}

Latest revision as of 03:28, 10 April 2023

Documentation

Template for displaying afflictions in other templates. Template:WeaponsTable, Template:CargoDamage, Template:SubmarineWeaponsTable, Template:ExplosivesTable.

Instructions

Field Note Example Expected Default
1 Affliction name Lacerations
2 Affliction strength 20
3 Affliction chance 0.5
4 Projectiles
  • Not shown if = 1.
8 1
5 Weapon damage modifier
  • Not shown if = 1.
1.1 1

Template in use

Example 1

{{AfflictionDisplay|Burn|20}}
Burn (20)*


Example 2

{{AfflictionDisplay|Gunshot Wound|10|0.5|8|1.1}}
Gunshot Wound (88)* (50% chance)
(8 projectiles x 10 x 1.1 weapon damage modifier)


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.