Template:TotalDamage: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
mNo edit summary
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude><includeonly>{{#cargo_query:tables = Items
<noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude><includeonly>{{#cargo_query:tables = Items
| fields = name, projectiles, magazine,  
| fields = _pageName, name, projectiles, magazine, afflictions, explosionafflictions
bluntforcetrauma, bluntforcetraumachance, bluntforcetrauma2, bluntforcetrauma2chance, bitewounds, bitewoundschance, bitewounds2, bitewounds2chance, gunshotwound, gunshotwoundchance, gunshotwound2, gunshotwound2chance, acidburn, acidburnchance, acidburn2, acidburn2chance, deeptissueinjury, deeptissueinjurychance, deeptissueinjury2, deeptissueinjury2chance, explosiondeeptissueinjury, explosiondeeptissueinjurychance, explosiondeeptissueinjury2, explosiondeeptissueinjury2chance, burn, burnchance, burn2, burn2chance, explosionburn, explosionburnchance, explosionburn2, explosionburn2chance, lacerations, lacerationschance, lacerations2, lacerations2chance, explosionlacerations, explosionlacerationschance, explosionlacerations2, explosionlacerations2chance, bleeding, bleedingchance, bleeding2, bleeding2chance, explosionbleeding, explosionbleedingchance, explosionbleeding2, explosionbleeding2chance, radiationsickness, radiationsicknesschance, radiationsickness2, radiationsickness2chance, explosionradiationsickness, explosionradiationsicknesschance, explosionradiationsickness2, explosionradiationsickness2chance,
| where = Items._pageName LIKE "{{{1|{{PAGENAME}}}}}"
| where = Items.name LIKE "{{{1|{{PAGENAME}}}}}"
| format = template
| format = template
| template = {{#switch: {{{2|total}}}|total=AmmoBoxDamage/total|round=AmmoBoxDamage/round|}}
| template = TotalDamage/sub{{!}}weapondamagemodifier = {{{weapondamagemodifier|}}}{{!}}type = {{{type|damage}}}{{!}}round = {{#ifeq:{{{2|}}}|round|1}}
| named args = yes
| named args = yes
}}</includeonly>
}}</includeonly>

Latest revision as of 17:55, 6 March 2024

Documentation
Main article: Boilerplate:Gear


Template calculating total value of choosen afflictions in a magazine or a single round.

By default it calculates total damage afflictions in a mag.

Instructions

Field Note Example Default
1 Name of the item Exploding Ammunition box
2 Calculates damage per round if defined as "round" round
type Used to choose the type of afflictions:
  • damage = blunttrauma, gunshotwound, acidburn, explosiondamage, burn, lacerations.
  • stun = stun
  • bleeding = bleeding
  • all = All of them in the listed order separated by ,
stun damage

Sub Templates


Template in use

Total damage

{{TotalDamage|Exploding Ammunition Box}}

4000



Damage per round

{{TotalDamage|Exploding Ammunition Box|round}}

40



Bleeding per round

{{TotalDamage|Exploding Ammunition Box|round|type=bleeding}}

1



Stun per round

{{TotalDamage|Exploding Ammunition Box|round|type=stun}}

0.025



All affliction types per round

{{TotalDamage|Exploding Ammunition Box|round|type=all}}

40,0.025,1