Line 1: |
Line 1: |
− | <includeonly>|- | + | <includeonly>{{#vardefine:Icon | {{calc|!{{{Name}}}|?_icon}} }}{{#vardefine:AA | {{calc|!{{{Name}}}|?aa}} }} |
| + | |- |
| |{{Equipment/Card|{{{Name}}}|small=true}} | | |{{Equipment/Card|{{{Name}}}|small=true}} |
− | |{{calc|!{{{Name}}}|?aa}} | + | |{{#var:AA}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=0}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}} round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=1}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}} round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=2}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(2) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=3}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(3) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=4}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(4) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=5}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(5) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=6}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(6) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=7}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(7) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=8}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(8) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=9}} | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(9) round 2}} |
− | |{{Calc AdjAA/ShipAA|Name={{{Name}}}|Star=10}}</includeonly><noinclude> | + | |{{#expr: {{#var:AA}}*{{#switch: {{#var:Icon}}| 16 = 4| 30 = 4| 11 = 3| 15 = 6| 0}}+{{#switch: {{#var:Icon}}| 16 = {{#ifexpr:{{#var:AA}}>7|3|2}}| 30 = 2| 15 = {{#ifexpr:{{#var:AA}}>7|6|4}}| 0}}*sqrt(10) round 2}}</includeonly><noinclude> |
| | | |
| This template create a line for a table which contain the Ship Adjusted AA of an equipment for all improvement level. | | This template create a line for a table which contain the Ship Adjusted AA of an equipment for all improvement level. |