Line 22: |
Line 22: |
| ! style="width: 30px; text-align: center; vertical-align: middle; background-color: violet;" | ${evasion} | | ! style="width: 30px; text-align: center; vertical-align: middle; background-color: violet;" | ${evasion} |
| ! style="text-align: center; vertical-align: middle;" | Armament | | ! style="text-align: center; vertical-align: middle;" | Armament |
− | ! style="text-align:left;" | Notes]], | + | ! style="text-align:left;" | Notes |
| + | ! style="text-align:left;" | OASW]], |
| _columns = { | | _columns = { |
| "card", | | "card", |
Line 36: |
Line 37: |
| "armament", | | "armament", |
| "notes", | | "notes", |
| + | "OASW", |
| }, | | }, |
| _cell = [[|style="text-align:${text_align};background-color:${bg_color}"|${value}]], | | _cell = [[|style="text-align:${text_align};background-color:${bg_color}"|${value}]], |
Line 197: |
Line 199: |
| end | | end |
| return {value = table.concat(value, "<br/>"), bg_color = self._transparent, text_align = self._start_align} | | return {value = table.concat(value, "<br/>"), bg_color = self._transparent, text_align = self._start_align} |
| + | end |
| + | |
| + | function EnemyShipListKai:OASW(ship) |
| + | local capabilities = ShipCapabilities{_ship = ship} |
| + | local value = {} |
| + | local attack_power, opening, day, night, uncertain = capabilities:asw_attack() |
| + | table.insert(value, opening and "Yes" or "No") |
| + | |
| + | return {value = table.concat(value, "<br/>"), bg_color = opening and "green" or self._transparent, text_align = self._start_align} |
| end | | end |
| | | |