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 09:15, 17 June 2022
275 bytes added
,
2 years ago
no edit summary
Line 325:
Line 325:
if not firepower then
if not firepower then
return nil
return nil
+
end
+
local has_bomber_planes = false
+
for i = 1, self._ship:slots_length() do
+
local equipment, size = self._ship:slot(i)
+
if equipment and self:_is_bomber(equipment) and size and size > 0 then
+
has_bomber_planes = true
+
break
+
end
end
end
local is_installation_bbv = self._ship:speed() == 0 and self._ship:type() == 10
local is_installation_bbv = self._ship:speed() == 0 and self._ship:type() == 10
−
if not self:_is_carrier() and not is_installation_bbv then
+
if not self:_is_carrier() and
(
not is_installation_bbv
or not has_bomber_planes)
then
if firepower > 0 then
if firepower > 0 then
for i = 1, self._ship:slots_length() do
for i = 1, self._ship:slots_length() do
がか
cssedit, gkautomate
7,064
edits