Template:Affliction: Difference between revisions
From Official Barotrauma Wiki
(added an 8th parameter for total affliction strength change, and included in its tooltip the 2nd param (strength change per second). Using the 8th parameter so as to not break all existing calls to this template :/) |
(also added total onFailure) |
||
Line 12: | Line 12: | ||
-->{{#if:{{{3|}}}|<span style="color:#c90c0c;cursor:help;" title="Affliction strength change per second if skill requirement isn't met">'''({{{3|}}})*'''</span>|}}}}<!-- | -->{{#if:{{{3|}}}|<span style="color:#c90c0c;cursor:help;" title="Affliction strength change per second if skill requirement isn't met">'''({{{3|}}})*'''</span>|}}}}<!-- | ||
// If there's only a total value | // If there's only a total value onUse | ||
-->{{#if:{{{8|}}}|<span style="cursor:help;color:#ba7000;" title="Total Affliction strength change when successful {{#if:{{{2|}}}|({{{2|}}}/s)|}}">'''({{{8|}}})*'''</span>|}}<!-- | -->{{#if:{{{8|}}}|<span style="cursor:help;color:#ba7000;" title="Total Affliction strength change when successful {{#if:{{{2|}}}|({{{2|}}}/s)|}}">'''({{{8|}}})*'''</span>|}}<!-- | ||
// If there's only a total value onFailure | |||
-->{{#if:{{{9|}}}|<span style="cursor:help;color:#ba3200;" title="Total Affliction strength change when failed {{#if:{{{3|}}}|({{{3|}}}/s)|}}">'''({{{9|}}})*'''</span>|}}<!-- | |||
/// Instantly gained | /// Instantly gained |
Revision as of 11:34, 8 January 2021
Syntax
{{Affliction| Affliction name | Affliction strength change per second | idem but onFailure | strength instantly gained | idem but onFailure | Total affliction strength change | idem but onFailure | icon size override (default = 30) | linktext = <custom text> | showpersec = yes | icon = <custom icon> | talent = yes }}
Examples
{{Affliction|Internal Damage|2|4|||||60}}gives: Internal Damage (2 | 4)*(60)*
{{Affliction|Psychosis Resistance|||600|300}}gives: Psychosis Resistance (600 | 300)*
{{Affliction|Internal Damage|5||||50}}gives: Internal Damage (5)* (per second change is in the tooltip on hover)
{{Affliction|Internal Damage||2.5||||25}}gives: Internal Damage (2.5)* (per second change is in the tooltip on hover)
{{Affliction|Internal Damage|-5||||-50|showpersec=yes}}gives: Internal Damage (-5)*
{{Affliction|Internal Damage|-5||||-50|showpersec=yes|linktext=Any Internal Damage}}gives: Internal Damage (-5)*
{{Affliction|talent=yes|Evasive Maneuvers}}gives: File:Affliction Evasive Maneuvers.png Evasive Maneuvers (for use with talent afflictions)
The above documentation is transcluded from Template:Affliction/doc. (edit | history)