Template:Affliction table: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
m (fix)
Tag: Undo
Line 39: Line 39:
! style="width: 15%" class="unsortable" |<span class="explain" title="Total affliction strength increase, Success | Failure. Weapons and creature attacks not included.">Causes</span>
! style="width: 15%" class="unsortable" |<span class="explain" title="Total affliction strength increase, Success | Failure. Weapons and creature attacks not included.">Causes</span>
|-
|-
|rowspan="{{#if:{{{range8|}}}|8|{{#if:{{{range7|}}}|7|{{#if:{{{range6|}}}|6|{{#if:{{{range5|}}}|5|{{#if:{{{range4|}}}|4|{{#if:{{{range3|}}}|3|{{#if:{{{range2|}}}|2|1}}}}}}}}}}}}}}"|[[File:Affliction {{{name}}}.png|50px]]<br>[[{{{name}}}]]
|rowspan="{{#if:{{{range8|}}}|8|{{#if:{{{range7|}}}|7|{{#if:{{{range6|}}}|6|{{#if:{{{range5|}}}|5|{{#if:{{{range4|}}}|4|{{#if:{{{range3|}}}|3|{{#if:{{{range2|}}}|2|1}}}}}}}}}}}}}}"|
<!-- StringFunctions extension currently limited to string of 1,000 characters or less.
Ensure "causes" is 1k or under before attempting String operations on it.
If it's <= 1k, search substring for "Genetic Material" and if found use Genetic Affliction icon, otherwise use Affliction [Name] Icon
If it's > 1k, use default behaviour of Affliction [Name] Icon
-->
{{#ifexpr: {{#len:{{{causes}}}}} <= 1000 |
    {{#ifexpr: {{#rpos:{{{causes}}}|Genetic Material}} < 0|[[File:Affliction {{{name}}}.png|50px]]
          |[[File:Genetic_Affliction.png|50px]]}}
    | [[File:Affliction {{{name}}}.png|50px]] }}
<br>[[{{{name}}}]]
|rowspan="{{#if:{{{range8|}}}|8|{{#if:{{{range7|}}}|7|{{#if:{{{range6|}}}|6|{{#if:{{{range5|}}}|5|{{#if:{{{range4|}}}|4|{{#if:{{{range3|}}}|3|{{#if:{{{range2|}}}|2|1}}}}}}}}}}}}}}"|{{{limb|<span style="color:#808080">No</span>}}}
|rowspan="{{#if:{{{range8|}}}|8|{{#if:{{{range7|}}}|7|{{#if:{{{range6|}}}|6|{{#if:{{{range5|}}}|5|{{#if:{{{range4|}}}|4|{{#if:{{{range3|}}}|3|{{#if:{{{range2|}}}|2|1}}}}}}}}}}}}}}"|{{{limb|<span style="color:#808080">No</span>}}}
|rowspan="{{#if:{{{range8|}}}|8|{{#if:{{{range7|}}}|7|{{#if:{{{range6|}}}|6|{{#if:{{{range5|}}}|5|{{#if:{{{range4|}}}|4|{{#if:{{{range3|}}}|3|{{#if:{{{range2|}}}|2|1}}}}}}}}}}}}}}"|{{{scaled|<span style="color:#808080">No</span>}}}
|rowspan="{{#if:{{{range8|}}}|8|{{#if:{{{range7|}}}|7|{{#if:{{{range6|}}}|6|{{#if:{{{range5|}}}|5|{{#if:{{{range4|}}}|4|{{#if:{{{range3|}}}|3|{{#if:{{{range2|}}}|2|1}}}}}}}}}}}}}}"|{{{scaled|<span style="color:#808080">No</span>}}}

Revision as of 17:53, 11 March 2022

Documentation

Example table for Internal Damage:

Affliction Limb Specific? Scaled to Vitality? If left alone Strength Range Effects Treatments Causes


Internal Damage

Yes Yes Stays 0 - 200 -0 → -2 Vitality Fentanyl (-75 | -50)* Desirable Medical Skill72
Deusizine (-60 | -40)* Desirable Medical Skill72
Morphine (-50 | 25)* Desirable Medical Skill30
Opium (-20 | -10)* Desirable Medical Skill15
Hyperzine (-12 | -6)* Desirable Medical Skill50
Tonic Liquid (-12 | 0)* Desirable Medical Skill5
Pomegrenade Extract (-6.25 | -3.125)* Desirable Medical Skill20
{{{causes}}}


Parameter Description
noicon Prevents the affliction icon from showing if set to Yes.
icon The name of the affliction icon's file. Uses Affliction [Name] if not defined. Does not do anything if noicon is defined.
name The name of the affliction. Required.
identifier The affliction's unique identifier (found in XML).
type The affliction's type (found in XML).
limb Is the affliction able to be applied to a specific limb? Displays No if not defined.
scaled Will Vitality loss and Affliction gain be multiplied by the afflicted's max vitality? Displays No if not defined.
evolution How much does the affliction's strength change per second? Displays None if not defined.
range1 The strength range in which the affliction's first set of effects take place. Displays N/A if not defined.
effect1 The effects that take place in the first strength range. Displays N/A if not defined.
range2 The strength range in which the affliction's second set of effects take place.
effect2 The effects that take place in the second strength range.
range3 The strength range in which the affliction's third set of effects take place.
effect3 The effects that take place in the third strength range.
range4 The strength range in which the affliction's fourth set of effects take place.
effect4 The effects that take place in the fourth strength range.
range5 The strength range in which the affliction's fifth set of effects take place.
effect5 The effects that take place in the fifth strength range.
range6 The strength range in which the affliction's sixth set of effects take place.
effect6 The effects that take place in the sixth strength range.
range7 The strength range in which the affliction's seventh set of effects take place.
effect7 The effects that take place in the seventh strength range.
range8 The strength range in which the affliction's eighth set of effects take place.
effect8 The effects that take place in the eighth strength range.
treatments What Medical Items decrease the affliction's strength? Use Template:Str with this section. Displays N/A if not defined.
causedby What Medical Items increase the affliction's strength? Use Template:Str with this section. Displays N/A if not defined.
sort Used by Cargo.
description Used by Cargo.
hidden Hides the affliction on the page and in the Template:Afflictions table, while still enabling the Template:AfflictionParser to display the affliction.

This template defines the table "Afflictions". View table.