Template:Firearm: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(added id value to template.)
(Added sight_dispersion and aim_speed. Fixed a few bugs.)
Line 39: Line 39:
|data9=<span style="color:{{#ifexpr: {{{range|0}}} > 0 |green|{{#ifexpr: {{{range|0}}} < 0 |darkred|lightgray}}}}">{{#ifexpr:{{{range|0}}}>0|+}}{{{range|0}}}</span>
|data9=<span style="color:{{#ifexpr: {{{range|0}}} > 0 |green|{{#ifexpr: {{{range|0}}} < 0 |darkred|lightgray}}}}">{{#ifexpr:{{{range|0}}}>0|+}}{{{range|0}}}</span>


|label10=[[Dispersion|Dispersion Bonus]]
|label10=[[Dispersion|Dispersion]]
|data10=<span style="color:{{#ifexpr: {{{dispersion|0}}} > 0 or {{{accuracy|0}}} > 0 |darkred|{{#ifexpr: {{{recoil|0}}} < 0 or {{{accuracy|0}}} < 0|green|lightgray}}}}">{{#ifexpr:{{{dispersion|0}}}>0 or {{{accuracy|0}}}>0|+}}{{{dispersion|}}}{{{accuracy|}}}</span>
|data10=<span style="color:{{#ifexpr: {{{dispersion|0}}} > 0 or {{{accuracy|0}}} > 0 |darkred|{{#ifexpr: {{{dispersion|0}}} < 0 or {{{accuracy|0}}} < 0|green|lightgray}}}}">{{#ifexpr:{{{dispersion|0}}}>0 or {{{accuracy|0}}}>0|+}}{{{dispersion|0}}}</span>


|label11=[[Recoil|Recoil Bonus]]
|label11=[[Dispersion|Sight Dispersion]]
|data11=<span style="color:{{#ifexpr: {{{recoil|0}}} > 0 |darkred|{{#ifexpr: {{{recoil|0}}} < 0 |green|lightgray}}}}">{{#ifexpr:{{{recoil|0}}}>0|+}}{{{recoil|0}}}</span>
|data11=<span style="color:{{#ifexpr: {{{sight_dispersion|0}}} > 0 |darkred|{{#ifexpr: {{{sight_dispersion|0}}} < 0 |green|lightgray}}}}">{{#ifexpr:{{{sight_dispersion|0}}} > 0 >0|+}}{{{sight_dispersion|0}}}</span>


|label12=Ammunition
|label12=[[Dispersion|Aim Speed]]
|data12={{ATtoname1|{{{ammotype|none}}}}}
|data12=<span style="color:{{#ifexpr: {{{aim_speed|0}}} > 0 |darkred|{{#ifexpr: {{{aim_speed|0}}} < 0 |green|lightgray}}}}">{{#ifexpr:{{{aim_speed|0}}} > 0 >0|+}}{{{aim_speed|0}}}</span>


|label13=Clip size
|label13=[[Recoil|Recoil Bonus]]
|data13={{{clip|0}}} rounds
|data13=<span style="color:{{#ifexpr: {{{recoil|0}}} > 0 |darkred|{{#ifexpr: {{{recoil|0}}} < 0 |green|lightgray}}}}">{{#ifexpr:{{{recoil|0}}}>0|+}}{{{recoil|0}}}</span>


|label14=Burst
|label14=Ammunition
|data14={{#if: {{{burst|}}}|{{#ifexpr: {{{burst|}}}>0|{{{burst|}}} rounds}}}}
|data14={{ATtoname1|{{{ammotype|none}}}}}


|label15=Reload time
|label15=Clip size
|data15={{{reloadtime|}}} {{#if: {{{reloadtime|}}}|turns}}
|data15={{{clip|0}}} rounds


|header16=Other
|label16=Burst
|data16={{#if: {{{burst|}}}|{{#ifexpr: {{{burst|}}}>0|{{{burst|}}} rounds}}}}


|label16=Price
|label17=Reload time
|data16={{#expr:{{{price|0}}}/10}} $
|data17={{{reloadtime|}}} {{#if: {{{reloadtime|}}}|turns}}


|label17=Flags
|header18=Other
|data17={{#if:{{{flag1|}}}|<abbr title="{{firearmflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{firearmflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{firearmflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{firearmflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{firearmflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{firearmflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}


|label18=Ammo Effects
|label18=Price
|data18={{#if:{{{ammo_effect1|}}}|<abbr title="{{ammoeffects|{{{ammo_effect1}}}}}">{{uc:{{{ammo_effect1}}}}}</abbr>|}}{{#if:{{{ammo_effect2|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect2}}}}}">{{uc:{{{ammo_effect2}}}}}</abbr>|}}{{#if:{{{ammo_effect3|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect3}}}}}">{{uc:{{{ammo_effect3}}}}}</abbr>|}}{{#if:{{{ammo_effect4|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect4}}}}}">{{uc:{{{ammo_effect4}}}}}</abbr>|}}{{#if:{{{ammo_effect5|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect5}}}}}">{{uc:{{{ammo_effect5}}}}}</abbr>|}}{{#if:{{{ammo_effect6|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect6}}}}}">{{uc:{{{ammo_effect6}}}}}</abbr>|}}
|data18={{#expr:{{{price|0}}}/10}} $


|header19=As a Melee Weapon
|label19=Flags
|data19={{#if:{{{flag1|}}}|<abbr title="{{firearmflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{firearmflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{firearmflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{firearmflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{firearmflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{firearmflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}


|label19=Bash Dmg
|label20=Ammo Effects
|data19=<span style="color:{{#ifexpr: {{{bash|0}}} > 0 |green|{{#ifexpr: {{{bash|0}}} < 0 |darkred|lightgray}}}}">{{{bash|0}}}</span>
|data20={{#if:{{{ammo_effect1|}}}|<abbr title="{{ammoeffects|{{{ammo_effect1}}}}}">{{uc:{{{ammo_effect1}}}}}</abbr>|}}{{#if:{{{ammo_effect2|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect2}}}}}">{{uc:{{{ammo_effect2}}}}}</abbr>|}}{{#if:{{{ammo_effect3|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect3}}}}}">{{uc:{{{ammo_effect3}}}}}</abbr>|}}{{#if:{{{ammo_effect4|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect4}}}}}">{{uc:{{{ammo_effect4}}}}}</abbr>|}}{{#if:{{{ammo_effect5|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect5}}}}}">{{uc:{{{ammo_effect5}}}}}</abbr>|}}{{#if:{{{ammo_effect6|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect6}}}}}">{{uc:{{{ammo_effect6}}}}}</abbr>|}}


|label20=Cut Dmg
|header21=As a Melee Weapon
|data20=<span style="color:{{#ifexpr: {{{cut|0}}} > 0 |green|{{#ifexpr: {{{cut|0}}} < 0 |darkred|lightgray}}}}">{{{cut|0}}}</span>


|label21=To Hit
|label21=Bash Dmg
|data21=<span style="color:{{#ifexpr: {{{tohit|0}}} > 0 |green|{{#ifexpr: {{{tohit|0}}} < 0 |darkred|lightgray}}}}">{{{tohit|<nowiki>+0</nowiki>}}}</span>
|data21=<span style="color:{{#ifexpr: {{{bash|0}}} > 0 |green|{{#ifexpr: {{{bash|0}}} < 0 |darkred|lightgray}}}}">{{{bash|0}}}</span>
 
|label22=Cut Dmg
|data22=<span style="color:{{#ifexpr: {{{cut|0}}} > 0 |green|{{#ifexpr: {{{cut|0}}} < 0 |darkred|lightgray}}}}">{{{cut|0}}}</span>
 
|label23=To Hit
|data23=<span style="color:{{#ifexpr: {{{tohit|0}}} > 0 |green|{{#ifexpr: {{{tohit|0}}} < 0 |darkred|lightgray}}}}">{{{tohit|<nowiki>+0</nowiki>}}}</span>


}}
}}

Revision as of 12:13, 4 August 2016

/ Firearm
General
Materials unknown
Volume 0
Weight 0 gr
As a Firearm
Damage Bonus 0
AP Bonus 0
Range Bonus 0
Dispersion 0
Sight Dispersion 0
Aim Speed 0
Recoil Bonus 0
Ammunition none
Clip size 0 rounds
Other
Price 0 $
As a Melee Weapon
Bash Dmg 0
Cut Dmg 0
To Hit +0
 A weapon