Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ShipCapabilities
(view source)
Revision as of 21:51, 10 September 2018
58 bytes added
,
6 years ago
no edit summary
Line 295:
Line 295:
for i = 1, ship:slots_length() or 0 do
for i = 1, ship:slots_length() or 0 do
local equipment, size = ship:slot(i)
local equipment, size = ship:slot(i)
−
if self:_is_main_gun(equipment) or self:_is_secondary_gun(equipment) then
+
if equipment then
−
return 1
+
if self:_is_main_gun(equipment) or self:_is_secondary_gun(equipment) then
−
elseif self:_is_torpedo(equipment) then
+
return 1
−
return 2
+
elseif self:_is_torpedo(equipment) then
+
return 2
+
end
end
end
end
end
がか
cssedit, gkautomate
7,064
edits