|
|
(26 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}}" |{{#if:{{{minleveldifficulty|}}}{{#ifeq:{{{outpostsold|}}}|1|1}}{{#ifeq:{{{citysold|}}}|1|1}}{{#ifeq:{{{researchsold|}}}|1|1}}{{#ifeq:{{{militarysold|}}}|1|1}}{{#ifeq:{{{minesold|}}}|1|1}}{{#ifeq:{{{armorysold|}}}|1|1}}{{#ifeq:{{{medicalsold|}}}|1|1}}{{#ifeq:{{{engineeringsold|}}}|1|1}}{{#ifeq:{{{clownsold|}}}|1|1}}{{#ifeq:{{{husksold|}}}|1|1}}|<!-- | | | style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{attackspeed}}} |
| -->{{#if:{{{coalitionreputation|}}}{{{separatistsreputation|}}}{{{clownreputation|}}}{{{huskreputation|}}}|<div style="text-align:center;white-space:nowrap;">{{#if:{{{coalitionreputation|}}}|[[File:Faction coalition.png|32px]]{{{coalitionreputation}}}}}{{#if:{{{separatistsreputation|}}}|[[File:Faction separatists.png|32px]]{{{separatistsreputation}}}}}{{#if:{{{clownreputation|}}}|[[File:Faction clowns.png|32px]]{{{clownreputation}}}}}{{#if:|[[File:Faction huskcult.png|32px]]{{{huskreputation}}}}}+ Reputation at:</div>}}<!--
| | | style="text-align:center;" rowspan="{{#var:rowspan}}" |{{{ammocount}}}{{#if:{{{ammo2count|}}}| | {{{ammo2count}}}}} |
| -->{{#if:{{{minleveldifficulty|}}}|<div style="text-align:center;white-space:nowrap;">{{{minleveldifficulty}}}%+ Level Difficulty at:</div>}}<div style="display:flex;flex-wrap:wrap;justify-content:center;align-content:center;"><!-- | | {{#if:{{{afflictions|}}}|<!-- The following is for weapons that don't use ammo and the afflictions are from the weapon itself --> |
| -->{{#ifeq:{{{outpostsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Habitation Outpost|Campaign#Outposts}}</div>}}<!--
| | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} |
| -->{{#ifeq:{{{citysold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Colony|Campaign#Outposts}}</div>}}<!--
| | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} |
| -->{{#ifeq:{{{researchsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Research Outpost|Campaign#Outposts}}</div>}}<!--
| | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{afflictions|}}}{{{explosionafflictions|}}}|{{AfflictionParser|afflictions={{{afflictions|}}}|explosionafflictions={{{explosionafflictions|}}}|explosionrange={{{explosionrange|}}}|projectiles={{{projectiles|}}}|weapondamagemodifier={{{weapondamagemodifier|}}}|nomargin=yes}}}} |
| -->{{#ifeq:{{{militarysold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Military Outpost|Campaign#Outposts}}</div>}}<!--
| | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{penetration|}}}|{{{penetration}}}%}} |
| -->{{#ifeq:{{{minesold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Location Mining Outpost|Campaign#Outposts}}</div>}}<!--
| | {{!}} rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{severlimbsprobability|}}}|{{{severlimbsprobability|}}}%}} |
| -->{{#ifeq:{{{armorysold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Armory Merchant|Campaign#Outposts}}</div>}}<!--
| | {{!}} style="text-align:center;" rowspan="{{#var:rowspan}}" {{!}} {{#if:{{{supplyname|}}}|{{{supplyname}}}:<br>}}{{#if:{{{supplyitems|}}}|{{{supplyitems}}}}}|<!-- The following is for weapons with ammo --> |
| -->{{#ifeq:{{{medicalsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Medical Merchant|Campaign#Outposts}}</div>}}<!--
| | {{#vardefine:rowcount|0}}<!-- |
| -->{{#ifeq:{{{engineeringsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Engineering Merchant|Campaign#Outposts}}</div>}}<!--
| | -->{{#cargo_query: |
| -->{{#ifeq:{{{clownsold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Clown Merchant|Campaign#Factions}}</div>}}<!--
| |
| -->{{#ifeq:{{{husksold|}}}|1|<div style="width:fit-content;">{{hl|<span></span>|32|Husk Merchant|Campaign#Factions}}</div>}}</div><!--
| |
| -->{{#ifeq:{{{fabricator}}}|1|<hr>}}}}<!--
| |
| | |
| -->{{#ifeq:{{{fabricator}}}|1|<div>Crafting:</div>{{#if:{{{talent|}}}|<div>Talent:{{{talent}}}</div>}}<div>{{{fabricatormaterials|}}}</div>}}<!--
| |
| | |
| -->{{#if:{{{sources|}}}|{{{sources}}}}}
| |
| | style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{{attackspeed}}}
| |
| | style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{#if:{{{supplyname|}}}|{{{supplyname}}}:<br>}}{{#if:{{{supplyitems|}}}|{{{supplyitems}}}}}
| |
| | style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" |{{{ammocount}}}
| |
| {{#if:{{{afflictions|}}}|<!-- This entire segment is for the Arc Emitter, it doesn't use ammo and the afflictions are from the weapon itself -->
| |
| {{!}} style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{{ammo|}}}
| |
| {{!}} style="text-align:center;" rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}}
| |
| {{!}} rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{{afflictions}}}
| |
| {{!}} rowspan="{{#expr:{{#count:{{{ammo}}}|<br>}}+1}}" {{!}} {{#if:{{{penetration|}}}|{{{penetration}}}|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, | | | 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.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.progressivestun, Items.stun,
| |
| Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun, | |
| <!-- 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 = AmmoTable/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,
| |
| <!-- Afflictions -->
| |
| Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.progressivestun, Items.stun,
| |
| Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun,
| |
| <!-- usedby2 -->
| |
| Ammunition.usedby2, Ammunition.usedby2weapondamagemodifier, Ammunition.usedby2magazine, Ammunition.usedby2fuelduration
| |
| | where = Ammunition.usedby2 = "{{{name}}}"
| |
| | order by = Items.name
| |
| | format = template
| |
| | template = AmmoTable/ammo2
| |
| | named args = yes
| |
| | default =
| |
| }} | | }} |
| {{#cargo_query:
| | |- |
| tables = Items,Ammunition
| | | style="height:0;padding:0;" colspan="8" | |
| | join on = Items.name = Ammunition.name
| |
| | fields = Items.name, Items.penetration, Items.projectiles, Items.magazine, Items.fuelduration, | |
| <!-- Afflictions -->
| |
| Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.progressivestun, Items.stun,
| |
| Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun,
| |
| <!-- usedby3 -->
| |
| Ammunition.usedby3, Ammunition.usedby3weapondamagemodifier, Ammunition.usedby3magazine, Ammunition.usedby3fuelduration
| |
| | where = Ammunition.usedby3 = "{{{name}}}" | |
| | order by = Items.name
| |
| | format = template
| |
| | template = AmmoTable/ammo3
| |
| | named args = yes | |
| | default =
| |
| }}}}
| |
| </onlyinclude> | | </onlyinclude> |