Template:ExplosivesTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
m (type -> category)
Line 15: Line 15:
{{#cargo_query:
{{#cargo_query:
tables = Items
tables = Items
| fields = Items.name, Items.type, Items.icon, Items.ammotype, Items.weapontype, Items.penetration, Items.projectiles, Items.severlimbsprobability, Items.explosionrange, Items.afflictions, Items.structuredamage, Items.explosionstructuredamage, Items.note, Items.triggers, Items.throwable,
| fields = Items.name, Items.icon, Items.ammotype, Items.weapontype, Items.penetration, Items.projectiles, Items.severlimbsprobability, Items.explosionrange, Items.afflictions, Items.structuredamage, Items.explosionstructuredamage, Items.note, Items.triggers, Items.throwable,
<!-- Afflictions -->
<!-- Afflictions -->
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.acidburn, Items.acidburnchance, Items.acidburn2, Items.acidburn2chance, Items.explosionacidburn, Items.explosionacidburnchance, Items.explosionacidburn2, Items.explosionacidburn2chance,
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.acidburn, Items.acidburnchance, Items.acidburn2, Items.acidburn2chance, Items.explosionacidburn, Items.explosionacidburnchance, Items.explosionacidburn2, Items.explosionacidburn2chance,
| 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.weapontype IS NULL AND Items.ammotype 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.weapontype IS NULL AND Items.ammotype IS NULL)}} AND Items.explosionrange IS NOT NULL
| order by = {{#switch:{{{tabletype}}}|other=Items.type DESC,}} Items.triggers, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionradiationsickness
| order by = {{#switch:{{{tabletype}}}|other=Items.category,}} Items.triggers, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionradiationsickness
| 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}}

Revision as of 13:22, 23 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 "bluntforcetrauma" 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 "bluntforcetrauma" 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 "bluntforcetrauma" 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 "bluntforcetrauma" 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 "bluntforcetrauma" found for the database table "Items".