Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Module:ShipCapabilities
(view source)
Revision as of 09:19, 17 June 2022
307 bytes added
,
2 years ago
no edit summary
Line 326:
Line 326:
return nil
return nil
end
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
+
]]--
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 then
Line 613:
Line 623:
local is_player_submarine = not is_enemy and self:_is_submarine()
local is_player_submarine = not is_enemy and self:_is_submarine()
if
if
+
self._ship:opening_torpedo() == true or
not is_enemy_submarine and self:_find_equipment(Self._is_active_midget_submarine) or
not is_enemy_submarine and self:_find_equipment(Self._is_active_midget_submarine) or
is_player_submarine and self._ship:level() and self._ship:level() >= 10 or
is_player_submarine and self._ship:level() and self._ship:level() >= 10 or
がか
cssedit, gkautomate
6,941
edits