Template:ExplosivesTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Created page with "<noinclude>{{doc}}Category:TemplatesCategory:Cargo Querying Templates</noinclude> <includeonly>{| class="responsive-table mw-collapsible {{#if:{{{collapsed|}}}|mw-coll...")
 
No edit summary
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude>
<noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude>
<includeonly>{| class="responsive-table mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}}" style="width:{{#if:{{{width|}}}|{{{width}}}%|auto}}"
<includeonly>{| class="responsive-table mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}}" style="width:{{#if:{{{width|}}}|{{{width}}}%|auto}}"
|+ {{#switch:{{{tabletype}}}|turret='''<big>Turrets</big>'''|largeturret='''<big>Large Turrets</big>'''|other='''<big>Other Submarine Weapons</big>'''}}
|+
!Item
!Item
!Triggers
!Triggers
!Afflictions
!Penetration
!Penetration
![[Armor Mechanics#Limb Severance|Severance<br>Chance]]
![[Armor Mechanics#Limb Severance|Severance<br>Chance]]
Line 10: Line 11:
{{#cargo_query:
{{#cargo_query:
tables = Items
tables = Items
| fields = Items.name, Items.type, Items.icon, Items.ammotype, Items.weapontype, Items.ammomaxstack, Items.weapondamagemodifier, Items.attackspeed, Items.penetration, Items.projectiles, Items.ammocount, Items.magazine, Items.magazine2, Items.fuelduration, Items.fuelduration2, Items.ammo, Items.supplyname, Items.supplyitems, Items.severlimbsprobability, Items.explosionrange, Items.afflictions, Items.piercing,
| 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,
<!-- 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.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,
| 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")}} 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}}}|explosive=Items.name|throwable=Items.name|ammo=Items.name|subammo=Items.ammotype|other=Items.type}}
| order by = {{#switch:{{{tabletype}}}|other=Items.type DESC}}, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionradiationsickness
| format = template
| template = ExplosivesTable/row
| named args = yes
| named args = yes
}}
}}
|}</includeonly>
|}</includeonly>
Explosive Compounds
Grenades
Ammunition
Handheld Weapons
Submarine Weapons
Materials

Revision as of 15:58, 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 Triggers 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 Triggers 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 Severance
Chance
Structure Damage Notes
Error: No field named "type" found for the database table "Items".