|
|
(16 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;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" | [[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;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{{attackspeed}}} | | | style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{attackspeed}}} |
| | style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{#if:{{{supplyname|}}}|{{{supplyname}}}:<br>}}{{#if:{{{supplyitems|}}}|{{{supplyitems}}}}} | | | style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{ammocount}}}{{#if:{{{ammo2count|}}}| | {{{ammo2count}}}}} |
| | style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{{ammocount}}}
| | {{#if:{{{afflictions|}}}|<!-- The following is for weapons that don't use ammo and the afflictions are from the weapon itself --> |
| {{#if:{{{afflictions|}}}|<!-- This is for weapons that don't use ammo and the afflictions are from the weapon itself --> | | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} |
| {{!}} style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{{ammo|}}} | | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} |
| {{!}} style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} | | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{afflictions|}}}{{{explosionafflictions|}}}|{{AfflictionParser|afflictions={{{afflictions|}}}|explosionafflictions={{{explosionafflictions|}}}|explosionrange={{{explosionrange|}}}|projectiles={{{projectiles|}}}|weapondamagemodifier={{{weapondamagemodifier|}}}|nomargin=yes}}}} |
| {{!}} rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{{afflictions}}} | | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{penetration|}}}|{{{penetration}}}%}} |
| {{!}} rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{#if:{{{penetration|}}}|{{{penetration}}}|0}}% | | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{severlimbsprobability|}}}|{{{severlimbsprobability|}}}%}} |
| {{!}} rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{#if:{{{severlimbsprobability|}}}|{{{severlimbsprobability|}}}%|0%}} | | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{supplyname|}}}|{{{supplyname}}}:<br>}}{{#if:{{{supplyitems|}}}|{{{supplyitems}}}}}|<!-- The following is for weapons with ammo --> |
| |{{#cargo_query:
| | {{#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.penetration, Items.projectiles, Items.magazine, Items.fuelduration, Items.severlimbsprobability, Items.explosionrange, | | | fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration, Items.severlimbsprobability, Items.explosionrange, Items.afflictions, Items.explosionafflictions, Ammunition.usedby, Ammunition.usedbyweapondamagemodifier, |
| <!-- Afflictions -->
| | | where = Ammunition.usedby = "{{{name}}}" OR Ammunition.usedby2 = "{{{name}}}" OR Ammunition.usedby3 = "{{{name}}}" |
| 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, | |
| <!-- usedby -->
| |
| Ammunition.usedby, Ammunition.usedbyweapondamagemodifier, Ammunition.usedbymagazine, Ammunition.usedbyfuelduration | |
| | where = Ammunition.usedby = "{{{name}}}" {{#ifeq:{{{name}}}|Arc Emitter|OR Items.name = "Arc Emitter"}} <!-- Exception for the Arc Emitter - It doesn't have ammo that causes afflictions, they are caused by the weapon itself --> | |
| | order by = Items.name | | | order by = Items.name |
| | format = template | | | format = template |
| | template = WeaponsTable/ranged/ammo | | | template = WeaponsTable/ranged/ammo{{!}}weapondamagemodifier={{{weapondamagemodifier|}}}{{!}}firerate={{{firerate|}}}{{!}}supplyname={{{supplyname|}}}{{!}}supplyitems={{{supplyitems|}}}{{!}}rowspan={{#var:rowspan}} |
| | named args = yes | | | named args = yes |
| | default = | | | default = |
| }} | | }} |
| {{#cargo_query:
| |
| tables = Items,Ammunition
| |
| | join on = Items.name = Ammunition.name
| |
| | fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration, Items.severlimbsprobability, Items.explosionrange, Items.piercing,
| |
| <!-- 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,
| |
| <!-- usedby2 -->
| |
| Ammunition.usedby2, Ammunition.usedby2weapondamagemodifier, Ammunition.usedby2magazine, Ammunition.usedby2fuelduration
| |
| | where = Ammunition.usedby2 = "{{{name}}}"
| |
| | order by = Items.name
| |
| | format = template
| |
| | template = WeaponsTable/ranged/ammo2
| |
| | named args = yes
| |
| | default =
| |
| }} | | }} |
| {{#cargo_query:
| |
| tables = Items,Ammunition
| |
| | join on = Items.name = Ammunition.name
| |
| | fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration, Items.severlimbsprobability, Items.explosionrange,
| |
| <!-- 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,
| |
| <!-- usedby3 -->
| |
| Ammunition.usedby3, Ammunition.usedby3weapondamagemodifier, Ammunition.usedby3magazine, Ammunition.usedby3fuelduration
| |
| | where = Ammunition.usedby3 = "{{{name}}}"
| |
| | order by = Items.name
| |
| | format = template
| |
| | template = WeaponsTable/ranged/ammo3
| |
| | named args = yes
| |
| | default =
| |
| }}}}
| |
| |- | | |- |
| | style="height:0;padding:0;" colspan="8" | | | | style="height:0;padding:0;" colspan="8" | |
| </onlyinclude> | | </onlyinclude> |