• 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
from wikiwiki, BB-typed installations behave like BB in shelling
Line 299: Line 299:  
local shiptype = self._ship:type()
 
local shiptype = self._ship:type()
 
local is_installation_bb = ((shiptype == 8) or (shiptype == 9)) and is_installation
 
local is_installation_bb = ((shiptype == 8) or (shiptype == 9)) and is_installation
if not self:_is_carrier() and not is_installation then
+
if not self:_is_carrier() and not is_installation or is_installation_bb 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
Line 319: Line 319:  
else
 
else
 
local total_space = self._ship:total_space()
 
local total_space = self._ship:total_space()
if is_installation_bb or (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_length() do
 
for i = 1, self._ship:slots_length() do
Line 345: Line 345:  
end
 
end
 
end
 
end
if is_installation_bb or has_planes then
+
if has_planes then
 
if vs_installation then
 
if vs_installation then
 
if bombing > 0 then
 
if bombing > 0 then
Line 633: Line 633:  
bomber = true
 
bomber = true
 
end
 
end
-- some equipments's asw value is invalid
+
-- some equipments' asw value is invalid
 
if not self:_is_unable_asw_equip(equipment) then
 
if not self:_is_unable_asw_equip(equipment) then
 
    equipment_asw = equipment_asw + (equipment:asw_leveled() or 0)
 
    equipment_asw = equipment_asw + (equipment:asw_leveled() or 0)
Anonymous user

Navigation menu