Template:ExplosivesTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
mNo edit summary
Line 7: Line 7:
}}
}}
!Afflictions
!Afflictions
{{#if:{{#switch:{{{tabletype}}}|other=1|}}||
!Penetration
!Penetration
{{#if:{{#switch:{{{tabletype}}}|other=1|}}||
![[Armor Mechanics#Limb Severance|Severance<br>Chance]]
![[Armor Mechanics#Limb Severance|Severance<br>Chance]]
}}
!Structure Damage
!Structure Damage
}}
!Notes
!Notes
{{#cargo_query:
{{#cargo_query:
Line 22: Line 22:
| format = template
| format = template
| template = {{#switch:{{{tabletype}}}|explosive=ExplosivesTable/explosive|throwable=ExplosivesTable/explosive|ammo=ExplosivesTable/ammo|subammo=ExplosivesTable/ammo|other=ExplosivesTable/other}}
| template = {{#switch:{{{tabletype}}}|explosive=ExplosivesTable/explosive|throwable=ExplosivesTable/explosive|ammo=ExplosivesTable/ammo|subammo=ExplosivesTable/ammo|other=ExplosivesTable/other}}
| named args = yes
| named args = yes
}}
}}
|}</includeonly>
|}</includeonly>

Revision as of 20:35, 19 March 2023

Documentation

Table displaying Explosives for the Explosives page.


Sub Templates

Template in use

Explosive

To show up here items must have:

  • explosionrange defined (any).
  • weapontype defined as explosive.
{{ExplosivesTable|tabletype=explosive}}
Item Triggers Afflictions Penetration Severance
Chance
Structure Damage Notes
Error: No field named "type" found for the database table "Items".

Throwable

To show up here items must have:

  • explosionrange defined (any).
  • weapontype defined as throwable.
{{ExplosivesTable|tabletype=throwable}}
Item Triggers Afflictions Penetration Severance
Chance
Structure Damage Notes
Error: No field named "type" found for the database table "Items".

Ammo

To show up here items must have:

  • explosionrange defined (any).
  • ammotype defined as ranged.
{{ExplosivesTable|tabletype=ammo}}
Item Afflictions Penetration Severance
Chance
Structure Damage Notes
Error: No field named "type" found for the database table "Items".

Submarine Ammo

To show up here items must have:

  • explosionrange defined (any).
  • ammotype defined as turret, largeturret or submarineother.
{{ExplosivesTable|tabletype=subammo}}
Item Afflictions Penetration Severance
Chance
Structure Damage Notes
Error: No field named "type" found for the database table "Items".

Other

To show up here items must have:

  • explosionrange defined (any).
  • weapontype NOT defined.
  • ammotype NOT defined.
{{ExplosivesTable|tabletype=other}}
Item Triggers Afflictions Structure Damage Notes
Error: No field named "type" found for the database table "Items".