615 bytes added
, 2 months ago
<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>
This template calculate the Adjusted Anti-Air of the equipment.
<pre>
{{Calc AdjAA/ShipAA
|AA= AA stat of the equipment
|Type= Equipment type only HA Gun, AAFD, Radar, AA Gun works
|Star= The improvement level of the equipment
}}
</pre>
Example:
<pre>
{{Calc AdjAA/ShipAA
|AA= 7
|Type= HA Gun
}}
</pre>
{{Calc AdjAA/ShipAA
|AA= 7
|Type= HA Gun
}}