• 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
m
reconstruct
Line 227: Line 227:  
end
 
end
 
   
 
   
-- small main guns', recon sea planes' and radars' asw is invalid
+
-- only following equipments' asw value are counted for attack
function ShipCapabilities:_is_unable_asw_equip(equipment)
+
function ShipCapabilities:_is_damaging_asw_equip(equipment)
 
local equipment_type = equipment:type()
 
local equipment_type = equipment:type()
return equipment_type == 1
+
return equipment_type == 7
or equipment_type == 10
+
or equipment_type == 8
or equipment_type == 12
+
or equipment_type == 11
or equipment_type == 13
+
or equipment_type == 14
or equipment_type == 93
+
or equipment_type == 15
 +
or equipment_type == 25
 +
or equipment_type == 26
 +
or equipment_type == 40
 
end
 
end
 
   
 
   
Line 642: Line 645:  
end
 
end
 
-- some equipments' asw value is invalid
 
-- some equipments' asw value is invalid
if not self:_is_unable_asw_equip(equipment) then
+
if self:_is_damaging_asw_equip(equipment) then
 
    equipment_asw = equipment_asw + (equipment:asw_leveled() or 0)
 
    equipment_asw = equipment_asw + (equipment:asw_leveled() or 0)
 
end  
 
end  
Anonymous user

Navigation menu