Template:Damage table: Difference between revisions
From Official Barotrauma Wiki
(merged with the subpage "fixedweapons" (added ammocount, itemdamage, explosionforce, penetration, severlimbs, crafting and deconstruction)) |
m (Expand Sever Limbs hovertext) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
! Shots|}}{{#if: {{{attackdamage|}}} |<br> | ! Shots|}}{{#if: {{{attackdamage|}}} |<br> | ||
! Attack Damage|}}{{#if: {{{afflictions|}}} |<br> | ! Attack Damage|}}{{#if: {{{afflictions|}}} |<br> | ||
! | ! Afflictions on Hit|}}{{#if: {{{penetration|}}} |<br> | ||
! | ! Armor Penetration|}}{{#if: {{{aoe|}}} |<br> | ||
! <abbr title="Only affects inside the submarine"> | ! Afflictions from Explosion|}}{{#if: {{{aoeinside|}}} |<br> | ||
! | ! <abbr title="Only affects targets that are inside the submarine">AOE Inside</abbr>|}}{{#if: {{{aoerange|}}} |<br> | ||
! Explosion Range|}}{{#if: {{{bleedingdamage|}}} |<br> | |||
! [[Afflictions#Bleeding|Bleeding]] Damage|}}{{#if: {{{structuredamage|}}} |<br> | ! [[Afflictions#Bleeding|Bleeding]] Damage|}}{{#if: {{{structuredamage|}}} |<br> | ||
! Structure Damage|}}{{#if: {{{itemdamage|}}} |<br> | ! Structure Damage|}}{{#if: {{{itemdamage|}}} |<br> | ||
! Item Damage|}}{{#if: {{{stundamage|}}} |<br> | ! Item Damage|}}{{#if: {{{stundamage|}}} |<br> | ||
! [[Stun]] <abbr title="in seconds">Duration</abbr>|}}{{#if: {{{force|}}} |<br> | ! [[Stun]] <abbr title="in seconds">Duration</abbr>|}}{{#if: {{{force|}}} |<br> | ||
! | ! Kinetic Force|}}{{#if: {{{explosionrange|}}} |<br> | ||
! Explosion Radius (m)|}}{{#if: {{{explosionforce|}}} |<br> | ! Explosion Radius (m)|}}{{#if: {{{explosionforce|}}} |<br> | ||
! Explosion Force | ! Explosion Force|}}{{#if: {{{severlimbs|}}} |<br> | ||
! <abbr title="Chance that the attack causes target limbs to be severed.">Sever Limbs</abbr>|}}{{#if: {{{damagetype|}}} |<br> | |||
! <abbr title=" | |||
! Damage Type|}}{{#if: {{{stick|}}} |<br> | ! Damage Type|}}{{#if: {{{stick|}}} |<br> | ||
! Stick to Entities?|}}{{#if: {{{duration|}}} |<br> | ! Stick to Entities?|}}{{#if: {{{duration|}}} |<br> | ||
Line 26: | Line 26: | ||
! Deconstruction Yield|}}{{#if: {{{raw|}}} |<br> | ! Deconstruction Yield|}}{{#if: {{{raw|}}} |<br> | ||
! Source|}}{{#if: {{{cooldown|}}} |<br> | ! Source|}}{{#if: {{{cooldown|}}} |<br> | ||
! Cooldown|}} | ! Cooldown|}}{{#if: {{{notes|}}} |<br> | ||
! Notes|}} | |||
{{!}}- | {{!}}- | ||
{{!}}{{#if: {{{image|}}} | [[File:{{{image}}}|{{{imagewidth|90}}}px|center]]|}}{{{item}}}{{#if: {{{targettype|}}} |<br> | {{!}}{{#if: {{{image|}}} | [[File:{{{image}}}|{{{imagewidth|90}}}px|center]]|}}{{{item}}}{{#if: {{{targettype|}}} |<br> | ||
Line 34: | Line 35: | ||
{{!}}{{{ammocount}}}|}}{{#if: {{{attackdamage|}}} |<br> | {{!}}{{{ammocount}}}|}}{{#if: {{{attackdamage|}}} |<br> | ||
{{!}}{{{attackdamage}}}|}}{{#if: {{{afflictions|}}} |<br> | {{!}}{{{attackdamage}}}|}}{{#if: {{{afflictions|}}} |<br> | ||
{{!}}{{{afflictions}}}|}}{{#if: {{{aoe|}}} |<br> | {{!}}{{{afflictions}}}|}}{{#if: {{{penetration|}}} |<br> | ||
{{!}}{{{penetration}}}|}}{{#if: {{{aoe|}}} |<br> | |||
{{!}}{{{aoe}}}|}}{{#if: {{{aoeinside|}}} |<br> | {{!}}{{{aoe}}}|}}{{#if: {{{aoeinside|}}} |<br> | ||
{{!}}{{{aoeinside}}}|}}{{#if: {{{aoerange|}}} |<br> | {{!}}{{{aoeinside}}}|}}{{#if: {{{aoerange|}}} |<br> | ||
Line 44: | Line 46: | ||
{{!}}{{{force}}}|}}{{#if: {{{explosionrange|}}} |<br> | {{!}}{{{force}}}|}}{{#if: {{{explosionrange|}}} |<br> | ||
{{!}}{{{explosionrange}}}|}}{{#if: {{{explosionforce|}}} |<br> | {{!}}{{{explosionrange}}}|}}{{#if: {{{explosionforce|}}} |<br> | ||
{{!}}{{{explosionforce | {{!}}{{{explosionforce}}}|}}{{#if: {{{severlimbs|}}} |<br> | ||
{{!}}{{{severlimbs}}}|}}{{#if: {{{damagetype|}}} |<br> | {{!}}{{{severlimbs}}}|}}{{#if: {{{damagetype|}}} |<br> | ||
{{!}}{{{damagetype}}}|}}{{#if: {{{stick|}}} |<br> | {{!}}{{{damagetype}}}|}}{{#if: {{{stick|}}} |<br> | ||
Line 54: | Line 55: | ||
{{!}}{{{deconstruction}}}|}}{{#if: {{{raw|}}} |<br> | {{!}}{{{deconstruction}}}|}}{{#if: {{{raw|}}} |<br> | ||
{{!}}{{{raw}}}|}}{{#if: {{{cooldown|}}} |<br> | {{!}}{{{raw}}}|}}{{#if: {{{cooldown|}}} |<br> | ||
{{!}}{{{cooldown}}} | {{!}}{{{cooldown}}}|}}{{#if: {{{notes|}}} |<br> | ||
{{!}}{{{notes}}} | |||
|}}<!-- | |}}<!-- | ||
-->{{#if: {{{item2|}}} |<br> | -->{{#if: {{{item2|}}} |<br> | ||
Line 64: | Line 66: | ||
{{!}}{{{ammocount2}}}|}}{{#if: {{{attackdamage2|}}} |<br> | {{!}}{{{ammocount2}}}|}}{{#if: {{{attackdamage2|}}} |<br> | ||
{{!}}{{{attackdamage2}}}|}}{{#if: {{{afflictions2|}}} |<br> | {{!}}{{{attackdamage2}}}|}}{{#if: {{{afflictions2|}}} |<br> | ||
{{!}}{{{afflictions2}}}|}}{{#if: {{{aoe2|}}} |<br> | {{!}}{{{afflictions2}}}|}}{{#if: {{{penetration2|}}} |<br> | ||
{{!}}{{{penetration2}}}|}}{{#if: {{{aoe2|}}} |<br> | |||
{{!}}{{{aoe2}}}|}}{{#if: {{{aoeinside2|}}} |<br> | {{!}}{{{aoe2}}}|}}{{#if: {{{aoeinside2|}}} |<br> | ||
{{!}}{{{aoeinside2}}}|}}{{#if: {{{aoerange2|}}} |<br> | {{!}}{{{aoeinside2}}}|}}{{#if: {{{aoerange2|}}} |<br> | ||
Line 74: | Line 77: | ||
{{!}}{{{force2}}}|}}{{#if: {{{explosionrange2|}}} |<br> | {{!}}{{{force2}}}|}}{{#if: {{{explosionrange2|}}} |<br> | ||
{{!}}{{{explosionrange2}}}|}}{{#if: {{{explosionforce2|}}} |<br> | {{!}}{{{explosionrange2}}}|}}{{#if: {{{explosionforce2|}}} |<br> | ||
{{!}}{{{explosionforce2 | {{!}}{{{explosionforce2}}}|}}{{#if: {{{severlimbs2|}}} |<br> | ||
{{!}}{{{severlimbs2}}}|}}{{#if: {{{damagetype2|}}} |<br> | {{!}}{{{severlimbs2}}}|}}{{#if: {{{damagetype2|}}} |<br> | ||
{{!}}{{{damagetype2}}}|}}{{#if: {{{stick2|}}} |<br> | {{!}}{{{damagetype2}}}|}}{{#if: {{{stick2|}}} |<br> | ||
Line 84: | Line 86: | ||
{{!}}{{{deconstruction2}}}|}}{{#if: {{{raw2|}}} |<br> | {{!}}{{{deconstruction2}}}|}}{{#if: {{{raw2|}}} |<br> | ||
{{!}}{{{raw2}}}|}}{{#if: {{{cooldown2|}}} |<br> | {{!}}{{{raw2}}}|}}{{#if: {{{cooldown2|}}} |<br> | ||
{{!}}{{{cooldown2}}}|}} | {{!}}{{{cooldown2}}}|}}{{#if: {{{notes2|}}} |<br> | ||
{{!}}{{{notes2}}}|}} | |||
|}}<!-- | |}}<!-- | ||
-->{{#if: {{{item3|}}} |<br> | -->{{#if: {{{item3|}}} |<br> | ||
Line 94: | Line 97: | ||
{{!}}{{{ammocount3}}}|}}{{#if: {{{attackdamage3|}}} |<br> | {{!}}{{{ammocount3}}}|}}{{#if: {{{attackdamage3|}}} |<br> | ||
{{!}}{{{attackdamage3}}}|}}{{#if: {{{afflictions3|}}} |<br> | {{!}}{{{attackdamage3}}}|}}{{#if: {{{afflictions3|}}} |<br> | ||
{{!}}{{{afflictions3}}}|}}{{#if: {{{aoe3|}}} |<br> | {{!}}{{{afflictions3}}}|}}{{#if: {{{penetration3|}}} |<br> | ||
{{!}}{{{penetration3}}}|}}{{#if: {{{aoe3|}}} |<br> | |||
{{!}}{{{aoe3}}}|}}{{#if: {{{aoeinside3|}}} |<br> | {{!}}{{{aoe3}}}|}}{{#if: {{{aoeinside3|}}} |<br> | ||
{{!}}{{{aoeinside3}}}|}}{{#if: {{{aoerange3|}}} |<br> | {{!}}{{{aoeinside3}}}|}}{{#if: {{{aoerange3|}}} |<br> | ||
Line 104: | Line 108: | ||
{{!}}{{{force3}}}|}}{{#if: {{{explosionrange3|}}} |<br> | {{!}}{{{force3}}}|}}{{#if: {{{explosionrange3|}}} |<br> | ||
{{!}}{{{explosionrange3}}}|}}{{#if: {{{explosionforce3|}}} |<br> | {{!}}{{{explosionrange3}}}|}}{{#if: {{{explosionforce3|}}} |<br> | ||
{{!}}{{{explosionforce3 | {{!}}{{{explosionforce3}}}|}}{{#if: {{{severlimbs3|}}} |<br> | ||
{{!}}{{{severlimbs3}}}|}}{{#if: {{{damagetype3|}}} |<br> | {{!}}{{{severlimbs3}}}|}}{{#if: {{{damagetype3|}}} |<br> | ||
{{!}}{{{damagetype3}}}|}}{{#if: {{{stick3|}}} |<br> | {{!}}{{{damagetype3}}}|}}{{#if: {{{stick3|}}} |<br> | ||
Line 114: | Line 117: | ||
{{!}}{{{deconstruction3}}}|}}{{#if: {{{raw3|}}} |<br> | {{!}}{{{deconstruction3}}}|}}{{#if: {{{raw3|}}} |<br> | ||
{{!}}{{{raw3}}}|}}{{#if: {{{cooldown3|}}} |<br> | {{!}}{{{raw3}}}|}}{{#if: {{{cooldown3|}}} |<br> | ||
{{!}}{{{cooldown3}}}|}} | {{!}}{{{cooldown3}}}|}}{{#if: {{{notes3|}}} |<br> | ||
{{!}}{{{notes3}}}|}} | |||
|}}<!-- | |}}<!-- | ||
-->{{#if: {{{item4|}}} |<br> | -->{{#if: {{{item4|}}} |<br> | ||
Line 124: | Line 128: | ||
{{!}}{{{ammocount4}}}|}}{{#if: {{{attackdamage4|}}} |<br> | {{!}}{{{ammocount4}}}|}}{{#if: {{{attackdamage4|}}} |<br> | ||
{{!}}{{{attackdamage4}}}|}}{{#if: {{{afflictions4|}}} |<br> | {{!}}{{{attackdamage4}}}|}}{{#if: {{{afflictions4|}}} |<br> | ||
{{!}}{{{afflictions4}}}|}}{{#if: {{{aoe4|}}} |<br> | {{!}}{{{afflictions4}}}|}}{{#if: {{{penetration4|}}} |<br> | ||
{{!}}{{{penetration4}}}|}}{{#if: {{{aoe4|}}} |<br> | |||
{{!}}{{{aoe4}}}|}}{{#if: {{{aoeinside4|}}} |<br> | {{!}}{{{aoe4}}}|}}{{#if: {{{aoeinside4|}}} |<br> | ||
{{!}}{{{aoeinside4}}}|}}{{#if: {{{aoerange4|}}} |<br> | {{!}}{{{aoeinside4}}}|}}{{#if: {{{aoerange4|}}} |<br> | ||
Line 134: | Line 139: | ||
{{!}}{{{force4}}}|}}{{#if: {{{explosionrange4|}}} |<br> | {{!}}{{{force4}}}|}}{{#if: {{{explosionrange4|}}} |<br> | ||
{{!}}{{{explosionrange4}}}|}}{{#if: {{{explosionforce4|}}} |<br> | {{!}}{{{explosionrange4}}}|}}{{#if: {{{explosionforce4|}}} |<br> | ||
{{!}}{{{explosionforce4 | {{!}}{{{explosionforce4}}}|}}{{#if: {{{severlimbs4|}}} |<br> | ||
{{!}}{{{severlimbs4}}}|}}{{#if: {{{damagetype4|}}} |<br> | {{!}}{{{severlimbs4}}}|}}{{#if: {{{damagetype4|}}} |<br> | ||
{{!}}{{{damagetype4}}}|}}{{#if: {{{stick4|}}} |<br> | {{!}}{{{damagetype4}}}|}}{{#if: {{{stick4|}}} |<br> | ||
Line 144: | Line 148: | ||
{{!}}{{{deconstruction4}}}|}}{{#if: {{{raw4|}}} |<br> | {{!}}{{{deconstruction4}}}|}}{{#if: {{{raw4|}}} |<br> | ||
{{!}}{{{raw4}}}|}}{{#if: {{{cooldown4|}}} |<br> | {{!}}{{{raw4}}}|}}{{#if: {{{cooldown4|}}} |<br> | ||
{{!}}{{{cooldown4}}}|}} | {{!}}{{{cooldown4}}}|}}{{#if: {{{notes4|}}} |<br> | ||
{{!}}{{{notes4}}}|}} | |||
|}}<!-- | |||
-->{{#if: {{{item5|}}} |<br> | |||
{{!}}- | |||
{{!}}{{#if: {{{image5|}}} | [[File:{{{image5}}}|{{{imagewidth5|90}}}px|center]]|}}{{{item5}}}{{#if: {{{targettype5|}}} |<br> | |||
{{!}}{{{targettype5}}}|}}{{#if: {{{context5|}}} |<br> | |||
{{!}}{{{context4}}}|}}{{#if: {{{range5|}}} |<br> | |||
{{!}}{{{range5}}}|}}{{#if: {{{ammocount5|}}} |<br> | |||
{{!}}{{{ammocount5}}}|}}{{#if: {{{attackdamage5|}}} |<br> | |||
{{!}}{{{attackdamage5}}}|}}{{#if: {{{afflictions5|}}} |<br> | |||
{{!}}{{{afflictions5}}}|}}{{#if: {{{penetration5|}}} |<br> | |||
{{!}}{{{penetration5}}}|}}{{#if: {{{aoe5|}}} |<br> | |||
{{!}}{{{aoe5}}}|}}{{#if: {{{aoeinside5|}}} |<br> | |||
{{!}}{{{aoeinside5}}}|}}{{#if: {{{aoerange5|}}} |<br> | |||
{{!}}{{{aoerange5}}}m|}}{{#if: {{{bleedingdamage5|}}} |<br> | |||
{{!}}{{{bleedingdamage5}}}|}}{{#if: {{{structuredamage5|}}} |<br> | |||
{{!}}{{{structuredamage5}}}|}}{{#if: {{{itemdamage5|}}} |<br> | |||
{{!}}{{{itemdamage5}}}|}}{{#if: {{{stundamage5|}}} |<br> | |||
{{!}}{{{stundamage5}}}|}}{{#if: {{{force5|}}} |<br> | |||
{{!}}{{{force5}}}|}}{{#if: {{{explosionrange5|}}} |<br> | |||
{{!}}{{{explosionrange5}}}|}}{{#if: {{{explosionforce5|}}} |<br> | |||
{{!}}{{{explosionforce5}}}|}}{{#if: {{{severlimbs5|}}} |<br> | |||
{{!}}{{{severlimbs5}}}|}}{{#if: {{{damagetype5|}}} |<br> | |||
{{!}}{{{damagetype5}}}|}}{{#if: {{{stick5|}}} |<br> | |||
{{!}}{{{stick5}}}|}}{{#if: {{{duration5|}}} |<br> | |||
{{!}}{{{duration5}}}|}}{{#if: {{{cost5|}}} |<br> | |||
{{!}}{{{cost5}}} Marks|}}{{#if: {{{crafting5|}}} |<br> | |||
{{!}}{{{crafting5}}}|}}{{#if: {{{deconstruction5|}}} |<br> | |||
{{!}}{{{deconstruction5}}}|}}{{#if: {{{raw5|}}} |<br> | |||
{{!}}{{{raw5}}}|}}{{#if: {{{cooldown5|}}} |<br> | |||
{{!}}{{{cooldown5}}}|}}{{#if: {{{notes5|}}} |<br> | |||
{{!}}{{{notes5}}}|}} | |||
|}} | |}} | ||
|} | |} | ||
<noinclude>[[Category:Data tables]]</noinclude> | <noinclude>{{doc}}[[Category:Data tables]]</noinclude> |
Latest revision as of 19:12, 9 June 2022
Item |
---|
{{{item}}} |
Used paramaters will be displayed in that order, from left to right.
XML data details may vary, there are exceptions etc.
Deprecated parameters are kept functional to not break any pages that still use them, but they shouldn't be used anymore.
Parameter | Description | Relevant tag in xml |
---|---|---|
item | Name of the attack (usually limb name for creatures, ammo type for weapons) | Creatures: <limb>name</limb> Weapons: name of ammo type |
targettype | Structure or Character (for creature attacks only) | <limb><attack>targettype</attack></limb> |
context | Water, Ground, or Any (for creature attacks only) | <limb><attack>context</attack></limb> |
range | Range in meters (for creature attacks only). In xml files, the value is given in centimeters, so "300" in the xml = "3" in here. | <limb><attack>range</attack></limb> |
ammocount | Ammunition count that the weapon can store at a time. | TODO |
attackdamage | Deprecated, do not use | - |
afflictions | Direct Hit Afflictions, as opposed to explosion afflictions. Use the Affliction template. Use <br> between each affliction (which makes for a shorter newline than a double newline). Example: {{Affliction|Burn|||40}}<br>{{Affliction|Stun|||0.4 sec}} |
TODO |
penetration | Armor penetration in % | TODO |
aoe | Area of effect afflictions, same format as afflictions | TODO |
aoeinside | Area of effect afflictions that only affects targets inside the submarine, such as molochs ram ("Core") attack which stuns only inside. Identified by onlyinside="true" , in <explosion> , in <attack> . |
TODO |
aoerange | Area of Effect in meters. In xml files, the value is given in centimeters, so "300" in the xml = "3" in here. | TODO |
bleedingdamage | Deprecated, use "afflictions " instead |
- |
structuredamage | Structure Damage. In the case of explosions, add the explosion damage after a newline, e.g. "30 (direct hit) <br> 50 (explosion)" | Creatures: <limb><attack>structuredamage</attack></limb> Weapons: TODO |
itemdamage | Item Damage | Creatures: <limb><attack>itemdamage</attack></limb> Weapons: TODO |
stundamage | Deprecated, use "afflictions " instead |
- |
force | Direct hit kinematic force (not explosion force) | Creatures: <limb><attack>force</attack></limb> Hand weapons ammo: <Item><Projectile><Attack>targetforce</Attack></Projectile></Item> |
explosionrange | Explosion Radius (m) | Creatures: <limb><attack><Explosion>range</Explosion></attack></limb> Explosives: <Item><Throwable><StatusEffect><Explosion>range</Explosion></StatusEffect></Throwable></Item> Hand weapons ammo: <Item><Projectile><Explosion>range</Explosion></Projectile></Item> Sub weapons ammo: <Item><StatusEffect><Explosion>range</Explosion></StatusEffect></Item> |
explosionforce | Explosion kinematic force (not direct hit force) | Creatures: <limb><attack><Explosion>force</Explosion></attack></limb> Explosives: <Item><Throwable><StatusEffect><Explosion>force</Explosion></StatusEffect></Throwable></Item> Hand weapons ammo: <Item><Projectile><Explosion>force</Explosion></Projectile></Item> Sub weapons ammo: <Item><StatusEffect><Explosion>force</Explosion></StatusEffect></Item> |
severlimbs | Percent chance to sever target's limbs (cut off creatures' limbs that can be cut off) float: "0.1" = 10% |
<Item><Projectile><Attack>severlimbsprobability</Attack></Projectile></Item> (0 if absent) |
damagetype | Deprecated, use "afflictions " instead |
- |
stick | Does the ammo stick to entities. At the time of writing, only applies to spineling projectiles and harpoons (afaik) | <Item><Projectile>sticktocharacters</Projectile></Item> (false if absent) |
duration | Attack Duration. Mostly useful when some entries have long durations, such as the watcher's acid mist Can probably be omitted if all entries are below 1 second |
<limb><attack>duration</attack></limb> |
cost | Ammo/magazine/ammo box store price. Use min-max base prices from outpost types that sell the item Can probably be omitted when all ammo has their own page |
<Item><Price>baseprice</Price></Item> multiplied by lowest and highest price multipliers, excluding locations that don't sell it |
crafting | Crafting Materials Can probably be omitted when all ammo has their own page |
<Item><Fabricate><RequiredItem/></Fabricate></Item> (can't be crafted if absent) |
deconstruction | Deconstruction Yield Can probably be omitted when all ammo has their own page |
<Item><Deconstruct><Item/></Deconstruct></Item> (can't be deconstructed if absent) |
raw | Deprecated, do not use | - |
cooldown | Attack cooldown in seconds (for creature attacks only) | <limb><attack>cooldown</attack></limb> |
notes | Additional notes for exceptions or things that aren't covered by other fields |
The above documentation is transcluded from Template:Damage table/doc. (edit | history)