Template:AfflictionDisplay/doc

From Official Barotrauma Wiki
Revision as of 12:17, 31 March 2023 by G3jzer (talk | contribs) (Created page with "{{doc/start}} Template for displaying afflictions in other templates. __TOC__ = Instructions = {|class="wikitable sortable" style="width: 100%;" !Field!!Note!!Example!!Expe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Documentation

Template for displaying afflictions in other templates.

Instructions

Field Note Example Expected Default
1 Affliction name Lacerations
2 Affliction strength 20
3 Affliction chance 0.5
4 Projectiles 8
5 Weapon damage modifier 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.