Template:BallastFloraDamageTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
(addded triggers)
Line 1: Line 1:
<noinclude>{{doc}}</noinclude><onlyinclude>
<noinclude>{{doc}}</noinclude><onlyinclude>
{| class="responsive-table sortable mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}}" style="width:{{{width|auto}}}%"
{| class="responsive-table sortable mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}}" style="width:{{{width|auto}}}%"
|+
|+ {{#switch:{{{tabletype}}}|handheld=<big>'''[[Handheld Weapons]]'''</big>|submarine=<big>'''[[Submarine Weapons]]'''</big>}}
!Item
!Item
!Triggers
!Ballast Flora Damage
!Ballast Flora Damage
!Structure Damage
!Structure Damage
Line 10: Line 11:
{{#cargo_query:
{{#cargo_query:
tables = Items
tables = Items
| fields = name, icon, projectiles, explosionrange, structuredamage, explosionstructuredamage, ballastfloradamage, explosionballastfloradamage, afflictions, note,
| fields = name, icon, projectiles, explosionrange, structuredamage, explosionstructuredamage, ballastfloradamage, explosionballastfloradamage, afflictions, note, triggers,
<!-- 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 = ballastfloradamage IS NOT NULL OR explosionballastfloradamage IS NOT NULL AND {{#switch:{{{tabletype}}}|handheld=(ammotype NOT IN ("turret","largeturret","submarineother") OR ammotype IS NULL)|submarine=ammotype IN ("turret","largeturret","submarineother")}}
| where = ballastfloradamage IS NOT NULL OR explosionballastfloradamage IS NOT NULL {{#switch:{{{tabletype}}}|handheld=AND (ammotype NOT IN ("turret","largeturret","submarineother") OR ammotype IS NULL)|submarine=AND ammotype IN ("turret","largeturret","submarineother")}}
| order by = weapontype DESC, ammotype DESC, category
| order by = weapontype DESC, ammotype DESC, category
| format = template
| format = template

Revision as of 18:56, 31 March 2023

Documentation

Table displaying Ballast Flora Damage for the Ballast Flora page.

Sub Templates

Template in use

Handheld

To show up here items must have:

  • ballastfloradamage, explosionballastfloradamage or firedamage defined (any).
  • ammotype NOT defined as turret, largeturret, or submarineother.
{{BallastFloraDamageTable|tabletype=handheld}}
Error: No field named "bluntforcetrauma" found for the database table "Items".
Handheld Weapons
Item Triggers Ballast Flora Damage Structure Damage Afflictions Notes


Submarine

To show up here items must have:

  • ballastfloradamage, explosionballastfloradamage or firedamage defined (any).
  • ammotype defined as turret, largeturret, or submarineother.
{{BallastFloraDamageTable|tabletype=submarine}}
Error: No field named "bluntforcetrauma" found for the database table "Items".
Submarine Weapons
Item Triggers Ballast Flora Damage Structure Damage Afflictions Notes


Error: No field named "bluntforcetrauma" found for the database table "Items".
Item Triggers Ballast Flora Damage Structure Damage Afflictions Notes