Template:ExplosivesTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 3: Line 3:
|+
|+
!Item
!Item
{{#if:{{#switch:{{{tabletype}}}|ammo=1|subammo=1}}||
!Triggers
!Triggers
}}
!Afflictions
!Afflictions
!Penetration
!Penetration
Line 17: Line 19:
Items.bluntforcetrauma, Items.bluntforcetraumachance, Items.bluntforcetrauma2, Items.bluntforcetrauma2chance, Items.bitewounds, Items.bitewoundschance, Items.bitewounds2, Items.bitewounds2chance, Items.gunshotwound, Items.gunshotwoundchance, Items.gunshotwound2, Items.gunshotwound2chance, Items.incrementalstun, Items.incrementalstunchance, Items.incrementalstun2, Items.incrementalstun2chance, Items.progressivestun, Items.progressivestunchance, Items.progressivestun2, Items.progressivestun2chance, Items.deeptissueinjury, Items.deeptissueinjurychance, Items.deeptissueinjury2, Items.deeptissueinjury2chance, Items.explosiondeeptissueinjury, Items.explosiondeeptissueinjurychance, Items.explosiondeeptissueinjury2, Items.explosiondeeptissueinjury2chance, Items.burn, Items.burnchance, Items.burn2, Items.burn2chance, Items.explosionburn, Items.explosionburnchance, Items.explosionburn2, Items.explosionburn2chance, Items.lacerations, Items.lacerationschance, Items.lacerations2, Items.lacerations2chance, Items.explosionlacerations, Items.explosionlacerationschance, Items.explosionlacerations2, Items.explosionlacerations2chance, Items.bleeding, Items.bleedingchance, Items.bleeding2, Items.bleeding2chance, Items.explosionbleeding, Items.explosionbleedingchance, Items.explosionbleeding2, Items.explosionbleeding2chance, Items.stun, Items.stunchance, Items.stun2, Items.stun2chance, Items.explosionstun, Items.explosionstunchance, Items.explosionstun2, Items.explosionstun2chance, Items.radiationsickness, Items.radiationsicknesschance, Items.radiationsickness2, Items.radiationsickness2chance, Items.explosionradiationsickness, Items.explosionradiationsicknesschance, Items.explosionradiationsickness2, Items.explosionradiationsickness2chance, Items.explosionnausea
Items.bluntforcetrauma, Items.bluntforcetraumachance, Items.bluntforcetrauma2, Items.bluntforcetrauma2chance, Items.bitewounds, Items.bitewoundschance, Items.bitewounds2, Items.bitewounds2chance, Items.gunshotwound, Items.gunshotwoundchance, Items.gunshotwound2, Items.gunshotwound2chance, Items.incrementalstun, Items.incrementalstunchance, Items.incrementalstun2, Items.incrementalstun2chance, Items.progressivestun, Items.progressivestunchance, Items.progressivestun2, Items.progressivestun2chance, Items.deeptissueinjury, Items.deeptissueinjurychance, Items.deeptissueinjury2, Items.deeptissueinjury2chance, Items.explosiondeeptissueinjury, Items.explosiondeeptissueinjurychance, Items.explosiondeeptissueinjury2, Items.explosiondeeptissueinjury2chance, Items.burn, Items.burnchance, Items.burn2, Items.burn2chance, Items.explosionburn, Items.explosionburnchance, Items.explosionburn2, Items.explosionburn2chance, Items.lacerations, Items.lacerationschance, Items.lacerations2, Items.lacerations2chance, Items.explosionlacerations, Items.explosionlacerationschance, Items.explosionlacerations2, Items.explosionlacerations2chance, Items.bleeding, Items.bleedingchance, Items.bleeding2, Items.bleeding2chance, Items.explosionbleeding, Items.explosionbleedingchance, Items.explosionbleeding2, Items.explosionbleeding2chance, Items.stun, Items.stunchance, Items.stun2, Items.stun2chance, Items.explosionstun, Items.explosionstunchance, Items.explosionstun2, Items.explosionstun2chance, Items.radiationsickness, Items.radiationsicknesschance, Items.radiationsickness2, Items.radiationsickness2chance, Items.explosionradiationsickness, Items.explosionradiationsicknesschance, Items.explosionradiationsickness2, Items.explosionradiationsickness2chance, Items.explosionnausea
| where = {{#switch:{{{tabletype}}}|explosive=Items.weapontype IN ("explosive")|throwable=Items.weapontype IN ("throwable")|ammo=Items.ammotype IN ("ranged")|subammo=Items.ammotype IN ("turret","largeturret","submarineother")|other=(Items.type NOT IN ("ammo","weapon") OR Items.type IS NULL)}} AND Items.explosionrange IS NOT NULL
| where = {{#switch:{{{tabletype}}}|explosive=Items.weapontype IN ("explosive")|throwable=Items.weapontype IN ("throwable")|ammo=Items.ammotype IN ("ranged")|subammo=Items.ammotype IN ("turret","largeturret","submarineother")|other=(Items.type NOT IN ("ammo","weapon") OR Items.type IS NULL)}} AND Items.explosionrange IS NOT NULL
| order by = {{#switch:{{{tabletype}}}|other=Items.type DESC}}, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionradiationsickness
| order by = {{#switch:{{{tabletype}}}|other=Items.type DESC,}} Items.triggers, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionradiationsickness
| format = template
| format = template
| template = ExplosivesTable/row
| 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 19:14, 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 Penetration Notes
Error: No field named "type" found for the database table "Items".