|
|
(38 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <noinclude>{{doc}}</noinclude><onlyinclude> | | <noinclude>{{doc}}</noinclude><onlyinclude> |
| |- | | |- {{#vardefine:rowspan|{{#expr: 1+{{#count:{{{ammo}}}|<br>}} {{#if:{{{ammo2|}}}|+1+{{#count:{{{ammo2}}}|<br>}}}} }}}} |
| | style="text-align:center;" {{#switch:{{#count:<nowiki><br></nowiki>}}|0=colspan="1"|1=colspan="2"|2=colspan="3"}}| [[File:{{#replace:{{{name}}}|&#39;|'}}.png|50px]] <br> [[{{#replace:{{{name}}}|&#39;|'}}]] | | | style="text-align:center;" rowspan="{{#var:rowspan}}" | [[File:{{#replace:{{{icon|{{{name}}}.png}}}|&#39;|'}}|50px]] <br> [[{{#replace:{{{name}}}|&#39;|'}}]] |
| | style="text-align:center" |{{{attackspeed}}} | | | style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{attackspeed}}} |
| | style="text-align:center" |{{#if:{{{weapondamagemodifier|}}}|{{{weapondamagemodifier}}}x}} | | | style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{ammocount}}}{{#if:{{{ammo2count|}}}| | {{{ammo2count}}}}} |
| | style="text-align:center" |{{{ammocount}}} | | {{#if:{{{afflictions|}}}|<!-- The following is for weapons that don't use ammo and the afflictions are from the weapon itself --> |
| | style="text-align:center" |{{#if:{{{magazine}}}|{{{magazine}}}{{#if:{{{magazine2}}}|-{{{magazine2}}}}}}}
| | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} |
| {{#if:{{{fuelduration}}}|{{{fuelduration}}}s{{#if:{{{fuelduration2}}}|-{{{fuelduration2}}}s}}}} | | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} |
| {{#cargo_query: | | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{afflictions|}}}{{{explosionafflictions|}}}|{{AfflictionParser|afflictions={{{afflictions|}}}|explosionafflictions={{{explosionafflictions|}}}|explosionrange={{{explosionrange|}}}|projectiles={{{projectiles|}}}|weapondamagemodifier={{{weapondamagemodifier|}}}|nomargin=yes}}}} |
| | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{penetration|}}}|{{{penetration}}}%}} |
| | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{severlimbsprobability|}}}|{{{severlimbsprobability|}}}%}} |
| | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{supplyname|}}}|{{{supplyname}}}:<br>}}{{#if:{{{supplyitems|}}}|{{{supplyitems}}}}}|<!-- The following is for weapons with ammo --> |
| | {{#vardefine:rowcount|0}}<!-- |
| | -->{{#cargo_query: |
| tables = Items,Ammunition | | tables = Items,Ammunition |
| | join on = Items.name = Ammunition.name | | | join on = Items.name = Ammunition.name |
| | fields = Items.name, Items.type, Items.icon, Items.ammotype, Items.weapontype, Items.minleveldifficulty, Items.unbuyable, Items.outpostsold, Items.citysold, Items.researchsold, Items.militarysold, Items.minesold, Items.medicalsold, Items.engineeringsold, Items.armorysold, Items.ammomaxstack, Items.talent, Items.afflictions, Items.weapondamagemodifier, Items.attackspeed, Items.penetration, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.organdamage, Items.burn, Items.bleeding, Items.progressivestun, Items.stun, Items.projectiles, Items.ammocount, Items.magazine, Items.magazine2, Items.fuelduration, Items.fuelduration2, Items.ammo, Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun, Items.explosionstructuredamage, Items.structuredamage, Items.outpostmultiplier, Items.citymultiplier, Items.researchmultiplier, Items.militarymultiplier, Items.minemultiplier, Items.medicalmultiplier, Items.engineeringmultiplier, Items.armorymultiplier, Ammunition.magazine, Ammunition.penetration, Ammunition.structuredamage, Ammunition.explosionrange, Ammunition.usedby, Ammunition.usedbyweapondamagemodifier, | | | fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration, Items.severlimbsprobability, Items.explosionrange, Items.afflictions, Items.explosionafflictions, Ammunition.usedby, Ammunition.usedbyweapondamagemodifier, |
| | where = Ammunition.usedby = "{{{name}}}" | | | where = Ammunition.usedby = "{{{name}}}" OR Ammunition.usedby2 = "{{{name}}}" OR Ammunition.usedby3 = "{{{name}}}" |
| | order by = Items.name | | | order by = Items.name |
| | format = template | | | format = template |
| | template = AmmoTable/ammo | | | template = WeaponsTable/ranged/ammo{{!}}weapondamagemodifier={{{weapondamagemodifier|}}}{{!}}firerate={{{firerate|}}}{{!}}supplyname={{{supplyname|}}}{{!}}supplyitems={{{supplyitems|}}}{{!}}rowspan={{#var:rowspan}} |
| | named args = yes | | | named args = yes |
| | | default = |
| }} | | }} |
| {{#cargo_query:
| |
| tables = Items,Ammunition
| |
| | join on = Items.name = Ammunition.name
| |
| | fields = Items.name, Items.type, Items.icon, Items.ammotype, Items.weapontype, Items.minleveldifficulty, Items.unbuyable, Items.outpostsold, Items.citysold, Items.researchsold, Items.militarysold, Items.minesold, Items.medicalsold, Items.engineeringsold, Items.armorysold, Items.ammomaxstack, Items.talent, Items.afflictions, Items.weapondamagemodifier, Items.attackspeed, Items.penetration, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.organdamage, Items.burn, Items.bleeding, Items.progressivestun, Items.stun, Items.projectiles, Items.ammocount, Items.magazine, Items.magazine2, Items.fuelduration, Items.fuelduration2, Items.ammo, Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun, Items.explosionstructuredamage, Items.structuredamage, Items.outpostmultiplier, Items.citymultiplier, Items.researchmultiplier, Items.militarymultiplier, Items.minemultiplier, Items.medicalmultiplier, Items.engineeringmultiplier, Items.armorymultiplier, Ammunition.magazine, Ammunition.penetration, Ammunition.structuredamage, Ammunition.explosionrange, Ammunition.usedby2, Ammunition.usedby2weapondamagemodifier,
| |
| | where = Ammunition.usedby2 = "{{{name}}}"
| |
| | order by = Items.name
| |
| | format = template
| |
| | template = AmmoTable/ammo
| |
| | named args = yes
| |
| }}
| |
| {{#cargo_query:
| |
| tables = Items,Ammunition
| |
| | join on = Items.name = Ammunition.name
| |
| | fields = Items.name, Items.type, Items.icon, Items.ammotype, Items.weapontype, Items.minleveldifficulty, Items.unbuyable, Items.outpostsold, Items.citysold, Items.researchsold, Items.militarysold, Items.minesold, Items.medicalsold, Items.engineeringsold, Items.armorysold, Items.ammomaxstack, Items.talent, Items.afflictions, Items.weapondamagemodifier, Items.attackspeed, Items.penetration, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.organdamage, Items.burn, Items.bleeding, Items.progressivestun, Items.stun, Items.projectiles, Items.ammocount, Items.magazine, Items.magazine2, Items.fuelduration, Items.fuelduration2, Items.ammo, Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun, Items.explosionstructuredamage, Items.structuredamage, Items.outpostmultiplier, Items.citymultiplier, Items.researchmultiplier, Items.militarymultiplier, Items.minemultiplier, Items.medicalmultiplier, Items.engineeringmultiplier, Items.armorymultiplier, Ammunition.magazine, Ammunition.penetration, Ammunition.structuredamage, Ammunition.explosionrange, Ammunition.usedby3, Ammunition.usedby3weapondamagemodifier,
| |
| | where = Ammunition.usedby3 = "{{{name}}}"
| |
| | order by = Items.name
| |
| | format = template
| |
| | template = AmmoTable/ammo
| |
| | named args = yes
| |
| }} | | }} |
| | |- |
| | | style="height:0;padding:0;" colspan="8" | |
| | </onlyinclude> |