Changes
slots() -> slots_length()
if not self:_is_carrier() and not is_installation then
if not self:_is_carrier() and not is_installation then
if firepower > 0 then
if firepower > 0 then
for i = 1, self._ship:slots() do
for i = 1, self._ship:slots_length() do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if equipment then
if equipment then
if total_space and total_space > 0 then
if total_space and total_space > 0 then
local has_planes, torpedo, bombing = false, self._ship:torpedo_leveled() or 0, 0
local has_planes, torpedo, bombing = false, self._ship:torpedo_leveled() or 0, 0
for i = 1, self._ship:slots() do
for i = 1, self._ship:slots_length() do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if equipment then
if equipment then
local torpedo = self._ship:torpedo_leveled()
local torpedo = self._ship:torpedo_leveled()
if torpedo and torpedo > 0 then
if torpedo and torpedo > 0 then
for i = 1, self._ship:slots() do
for i = 1, self._ship:slots_length() do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if equipment then
if equipment then
end
end
local main_guns, secondary_guns, seaplanes, radars, ap_shells = 0, 0, 0, 0, 0
local main_guns, secondary_guns, seaplanes, radars, ap_shells = 0, 0, 0, 0, 0
for i = 1, self._ship:slots() or 0 do
for i = 1, self._ship:slots_length() or 0 do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if equipment then
if equipment then
return nil
return nil
end
end
for i = 1, self._ship:slots() or 0 do
for i = 1, self._ship:slots_length() or 0 do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if equipment then
if equipment then
end
end
end
end
for i = 1, self._ship:slots() or 0 do
for i = 1, self._ship:slots_length() or 0 do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if equipment then
if equipment then
local asw_leveled = self._ship:asw_leveled()
local asw_leveled = self._ship:asw_leveled()
local ship_asw, equipment_asw, depth_charge, sonar, bomber = (asw_leveled or 0), 0, false, false, false
local ship_asw, equipment_asw, depth_charge, sonar, bomber = (asw_leveled or 0), 0, false, false, false
for i = 1, self._ship:slots() or 0 do
for i = 1, self._ship:slots_length() or 0 do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if equipment then
if equipment then
end
end
local airstrikes = {}
local airstrikes = {}
for i = 1, self._ship:slots() or 0 do
for i = 1, self._ship:slots_length() or 0 do
local equipment, size = self._ship:slot(i)
local equipment, size = self._ship:slot(i)
if size and size > 0 and equipment and self:_is_bomber(equipment) then
if size and size > 0 and equipment and self:_is_bomber(equipment) then