Template:Damage multipliers: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
| template = Damage multipliers/immunity | | template = Damage multipliers/immunity | ||
| named args = yes | | named args = yes | ||
| default = blorg | | default = blorg immu | ||
}}{{#cargo_query: | }}{{#cargo_query: | ||
tables = Creatures | tables = Creatures | ||
| fields = name, | | fields = name, | ||
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}} AND Creatures.name NOT | limb1burn, limb1bleeding, limb1alldamage, limb1internaldamage, limb1lacerations, limb1bluntforcetrauma, limb1deeptissueinjury, limb1bitewounds, limb1gunshotwound, limb1organdamage, | ||
limb2burn, limb2bleeding, limb2alldamage, limb2internaldamage, limb2lacerations, limb2bluntforcetrauma, limb2deeptissueinjury, limb2bitewounds, limb2gunshotwound, limb2organdamage, | |||
limb3burn, limb3bleeding, limb3alldamage, limb3internaldamage, limb3lacerations, limb3bluntforcetrauma, limb3deeptissueinjury, limb3bitewounds, limb3gunshotwound, limb3organdamage, | |||
limb4burn, limb4bleeding, limb4alldamage, limb4internaldamage, limb4lacerations, limb4bluntforcetrauma, limb4deeptissueinjury, limb4bitewounds, limb4gunshotwound, limb4organdamage, | |||
limb5burn, limb5bleeding, limb5alldamage, limb5internaldamage, limb5lacerations, limb5bluntforcetrauma, limb5deeptissueinjury, limb5bitewounds, limb5gunshotwound, limb5organdamage | |||
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}} AND Creatures.name NOT '%{{{exclude}}}%' AND Creatures.name NOT '%{{{exclude2}}}%' | |||
| format = template | | format = template | ||
| template = Damage multipliers/header | | template = Damage multipliers/header | ||
| named args = yes | | named args = yes | ||
| default = blorg header | |||
}} | }} | ||
{{#cargo_query: | {{#cargo_query: | ||
tables = Creatures | tables = Creatures | ||
| fields = name | | fields = name, limb1, limb2, limb3, limb4, limb5, | ||
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}} AND Creatures.name NOT | limb1burn, limb1bleeding, limb1alldamage, limb1internaldamage, limb1lacerations, limb1bluntforcetrauma, limb1deeptissueinjury, limb1bitewounds, limb1gunshotwound, limb1organdamage, | ||
limb2burn, limb2bleeding, limb2alldamage, limb2internaldamage, limb2lacerations, limb2bluntforcetrauma, limb2deeptissueinjury, limb2bitewounds, limb2gunshotwound, limb2organdamage, | |||
limb3burn, limb3bleeding, limb3alldamage, limb3internaldamage, limb3lacerations, limb3bluntforcetrauma, limb3deeptissueinjury, limb3bitewounds, limb3gunshotwound, limb3organdamage, | |||
limb4burn, limb4bleeding, limb4alldamage, limb4internaldamage, limb4lacerations, limb4bluntforcetrauma, limb4deeptissueinjury, limb4bitewounds, limb4gunshotwound, limb4organdamage, | |||
limb5burn, limb5bleeding, limb5alldamage, limb5internaldamage, limb5lacerations, limb5bluntforcetrauma, limb5deeptissueinjury, limb5bitewounds, limb5gunshotwound, limb5organdamage | |||
| where = Creatures.name = {{#if:{{{1|}}}|'{{{1}}}'|'{{PAGENAME}}'}} AND Creatures.name NOT '%{{{exclude}}}%' AND Creatures.name NOT '%{{{exclude2}}}%' | |||
| format = template | | format = template | ||
| template = Damage multipliers/row | | template = Damage multipliers/row | ||
| named args = yes | | named args = yes | ||
| default = blorg row | |||
}} | }} | ||
|} | |} |
Revision as of 13:09, 8 June 2022
This template is used on creature pages in the Defense section, to display a table of their damage modifiers per limb. Data is read from the Creatures cargo table, and as such, it must be defined in the creature infobox. See Template:Creatures infobox for details.
Additionally, it displays the relevant damage modifiers png file if it exists. If it doesn't, add hideimage=yes
as a parameter (e.g. {{Damage modifiers|hideimages=yes}}
).