Changes

no edit summary
Line 1: Line 1: −
<includeonly>{{#expr: {{{AA}}}*{{#switch: {{{Type}}}| HA Gun = 4| AAFD = 4| Radar = 3| AA Gun = 6| 0}}+{{#switch: {{{Type}}}| HA Gun = {{#ifexpr:{{{AA}}}>7|3|2}}| AAFD = 2| AA Gun = {{#ifexpr:{{{AA}}}>7|6|4}}| 0}}*sqrt({{{Star|0}}}) round 2}}</includeonly><noinclude>
+
<includeonly>{{#expr: {{calc|!{{{Name}}}|?aa}}*{{#switch: {{calc|!{{{Name}}}|?_icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{calc|!{{{Name}}}|?_icon}}| 16 = {{#ifexpr:{{calc|!{{{Name}}}|?aa}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{calc|!{{{Name}}}|?aa}}>7|6|4}}| 0}}*sqrt({{{Star|0}}}) round 2}}</includeonly><noinclude>
    
This template calculate the Adjusted Anti-Air of the equipment.
 
This template calculate the Adjusted Anti-Air of the equipment.
 
<pre>
 
<pre>
 
{{Calc AdjAA/ShipAA
 
{{Calc AdjAA/ShipAA
|AA= AA stat of the equipment
+
|Name= the name of the equipment
|Type= Equipment type only HA Gun, AAFD, Radar, AA Gun works
   
|Star= The improvement level of the equipment
 
|Star= The improvement level of the equipment
 
}}
 
}}
Line 12: Line 11:  
<pre>
 
<pre>
 
{{Calc AdjAA/ShipAA
 
{{Calc AdjAA/ShipAA
|AA= 7
+
|Name=10cm Twin High-angle Gun Mount
|Type= HA Gun
+
|Star=5
 
}}
 
}}
 
</pre>
 
</pre>
 
{{Calc AdjAA/ShipAA
 
{{Calc AdjAA/ShipAA
|AA= 7
+
|Name= 10cm Twin High-angle Gun Mount
|Type= HA Gun
+
|Star=5
 
}}
 
}}
5,150

edits