Line 11: |
Line 11: |
| !Formation | | !Formation |
| !${node_type} | | !${node_type} |
− | !AP/AS/AS+]], | + | !AD/AP/AS/AS+]], |
| _column_cell_templates = { | | _column_cell_templates = { |
| node = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: center; color: ${color}; background-color: ${bg_color};" |${values.node}]], | | node = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: center; color: ${color}; background-color: ${bg_color};" |${values.node}]], |
Line 112: |
Line 112: |
| or (air_parity .. "/" .. air_superiority .. "/" .. air_supremacy) | | or (air_parity .. "/" .. air_superiority .. "/" .. air_supremacy) |
| --]=] | | --]=] |
− | local air_parity = as_complete and string.format("%.1d", math.ceil((2./3.) * as)) or "??" | + | local air_parity = as_complete and string.format("%.1d", math.ceil((2./3.) * as)) or "?" |
− | local air_superiority = as_complete and string.format("%.1d", math.ceil(as * (3 / 2))) or "??" | + | local air_superiority = as_complete and string.format("%.1d", math.ceil(as * (3 / 2))) or "?" |
− | local air_supremacy = as_complete and tostring(as * 3) or "??" | + | local air_supremacy = as_complete and tostring(as * 3) or "?" |
− | local air_string = air_parity .. "/" .. air_superiority .. "/" .. air_supremacy | + | local air_denial = as_complete and string.format("%.1d", math.floor(as / 3 + 1)) or "?" |
| + | local air_string = air_denial .. "/" .. air_parity .. "/" .. air_superiority .. "/" .. air_supremacy |
| + | |
| table.insert(self._items, { | | table.insert(self._items, { |
| node = node, | | node = node, |