- 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 101:
Line 101:
− +
Line 114:
Line 114:
+
+
no edit summary
function EnemyShipListKai:armament(ship)
function EnemyShipListKai:armament(ship)
local icons, roles = {}, {}
local icons, roles = {}, {}
local sonar, dc, air_power = false, false, false
local sonar, dc, air_power, midget_submarine = false, false, false
for i = 1, ship:slots_length() do
for i = 1, ship:slots_length() do
elseif ShipCapabilities:_is_depth_charge(equipment) then
elseif ShipCapabilities:_is_depth_charge(equipment) then
dc = true
dc = true
elseif ShipCapabilities:_is_midget_submarine(equipment) then
midget_submarine = true
end
end
equipment_link, equipment = Formatting:format_link(equipment:link())
equipment_link, equipment = Formatting:format_link(equipment:link())