Template:TotalDamage/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{doc/start}}{{main|Boilerplate:Gear}}
{{doc/start}}{{main|Boilerplate:Gear}}
Table displaying Gear for the [[Gear]] page.
Template calculating total value of choosen afflictions in a magazine or a single round.
 
By default it calculates total damage afflictions in a mag.


__TOC__
__TOC__
Line 11: Line 13:
| 1 || Name of the item || Exploding Ammunition box ||  
| 1 || Name of the item || Exploding Ammunition box ||  
|-
|-
| 2 || Total damage or damage per round || total / round || total
| 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 <code>,</code>
 
|| stun || damage
|-
|-
|}
|}


=Sub Templates=
=Sub Templates=
*[[Template:AmmoBoxDamage/total]]<br>
*[[Template:TotalDamage/sub]]<br>
*[[Template:AmmoBoxDamage/round]]<br>




Line 23: Line 32:


==Total damage==
==Total damage==
<pre style="width:20%">{{AmmoBoxDamage|Exploding Ammunition Box}}</pre>
<pre style="width:20%">{{TotalDamage|Exploding Ammunition Box}}</pre>
{{AmmoBoxDamage|Exploding Ammunition Box}}
{{TotalDamage|Exploding Ammunition Box}}
 
----
 


==Damage per round==
<pre style="width:20%">{{TotalDamage|Exploding Ammunition Box|round}}</pre>
{{TotalDamage|Exploding Ammunition Box|round}}


----
----




==Damage per round==
==Bleeding per round==
<pre style="width:20%">{{AmmoBoxDamage|Exploding Ammunition Box|round}}</pre>
<pre style="width:20%">{{TotalDamage|Exploding Ammunition Box|round|type=bleeding}}</pre>
{{AmmoBoxDamage|Exploding Ammunition Box|round}}
{{TotalDamage|Exploding Ammunition Box|round|type=bleeding}}
 
----
 
 
==Stun per round==
<pre style="width:20%">{{TotalDamage|Exploding Ammunition Box|round|type=stun}}</pre>
{{TotalDamage|Exploding Ammunition Box|round|type=stun}}
 
----
 


==All affliction types per round==
<pre style="width:20%">{{TotalDamage|Exploding Ammunition Box|round|type=all}}</pre>
{{TotalDamage|Exploding Ammunition Box|round|type=all}}


==Notes==
<pre>* In spite of having only half the shot capacity of normal ''Coilgun Ammunition'', ''Explosive Coilgun Ammunition'' sports both superior damage per shot and damage per box. A normal coilgun bolt will inflict {{AmmoBoxDamage|Coilgun Ammunition Box|round}} total, with bleeding included. An exploding coilgun bolt will inflict {{AmmoBoxDamage|Exploding Ammunition Box|round}} per bolt to a single target, bleeding similarly accounted for. Assuming every shot in a box will connect, a ''Coilgun Ammunition box'' will inflict {{AmmoBoxDamage|Coilgun Ammunition Box}} over its use, whereas an ''Exploding Ammunition box'' will inflict {{AmmoBoxDamage|Exploding Ammunition Box}} over its use.</pre>
* In spite of having only half the shot capacity of normal ''Coilgun Ammunition'', ''Explosive Coilgun Ammunition'' sports both superior damage per shot and damage per box. A normal coilgun bolt will inflict {{AmmoBoxDamage|Coilgun Ammunition Box|round}} total, with bleeding included. An exploding coilgun bolt will inflict {{AmmoBoxDamage|Exploding Ammunition Box|round}} per bolt to a single target, bleeding similarly accounted for. Assuming every shot in a box will connect, a ''Coilgun Ammunition box'' will inflict {{AmmoBoxDamage|Coilgun Ammunition Box}} over its use, whereas an ''Exploding Ammunition box'' will inflict {{AmmoBoxDamage|Exploding Ammunition Box}} over its use.


{{doc/end}}
{{doc/end}}

Latest revision as of 02:05, 12 May 2023

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


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