- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Line 275:
Line 275:
− +
− +
− +
− +
− +
− +
− +
− +
− +
− +
− +
− +
− +
− +
no edit summary
function EnemyShipInfoKai:capabilities()
function EnemyShipInfoKai:capabilities()
local capabilities = ShipCapabilities{ship = self._ship}
local capabilities = ShipCapabilities{ship = self._ship}
local opening_airstrike = capabilities:opening_airstrike()
local opening_airstrike = { capabilities:opening_airstrike() }
local opening_torpedo = capabilities:opening_torpedo()
local opening_torpedo = { capabilities:opening_torpedo() }
local day_battle = capabilities:day_battle()
local day_battle = { capabilities:day_battle() }
local artillery_spotting = capabilities:artillery_spotting()
local artillery_spotting = { capabilities:artillery_spotting() }
local closing_torpedo = capabilities:closing_torpedo()
local closing_torpedo = { capabilities:closing_torpedo() }
local asw_attack = capabilities:asw_attack()
local asw_attack = { capabilities:asw_attack() }
local night_battle = capabilities:night_battle()
local night_battle = { capabilities:night_battle() }
self._vars.opening_airstrike_display, self._vars.opening_airstrike = opening_airstrike and self._display_flex or self._display_none, capabilities:format_opening_airstrike(opening_airstrike)
self._vars.opening_airstrike_display, self._vars.opening_airstrike = opening_airstrike[1] and self._display_flex or self._display_none, capabilities:format_opening_airstrike(unpack(opening_airstrike))
self._vars.opening_torpedo_display, self._vars.opening_torpedo = opening_torpedo and self._display_flex or self._display_none, capabilities:format_opening_torpedo(opening_torpedo)
self._vars.opening_torpedo_display, self._vars.opening_torpedo = opening_torpedo[1] and self._display_flex or self._display_none, capabilities:format_opening_torpedo(unpack(opening_torpedo))
self._vars.day_battle = capabilities:format_day_battle(day_battle)
self._vars.day_battle = capabilities:format_day_battle(unpack(day_battle))
self._vars.artillery_spotting = capabilities:format_artillery_spotting(artillery_spotting)
self._vars.artillery_spotting = capabilities:format_artillery_spotting(unpack(artillery_spotting))
self._vars.closing_torpedo_display, self._vars.closing_torpedo = closing_torpedo and self._display_flex or self._display_none, capabilities:format_closing_torpedo(closing_torpedo)
self._vars.closing_torpedo_display, self._vars.closing_torpedo = closing_torpedo[1] and self._display_flex or self._display_none, capabilities:format_closing_torpedo(unpack(closing_torpedo))
self._vars.asw_attack = capabilities:format_asw_attack(asw_attack)
self._vars.asw_attack = capabilities:format_asw_attack(unpack(asw_attack))
self._vars.night_battle = capabilities:format_night_battle(night_battle)
self._vars.night_battle = capabilities:format_night_battle(unpack(night_battle))
end
end