• 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
handle air power for unknown forms
Line 563: Line 563:  
function ShipData:air_power(count_recons)
 
function ShipData:air_power(count_recons)
 
     local air_power = 0
 
     local air_power = 0
     for i = 1, self:slots_length() or 0 do
+
    local slots_length = self:slots_length()
 +
    if not slots_length or slots_length == 0 then
 +
        air_power = self._as_rating
 +
    end
 +
     for i = 1, slots_length or 0 do
 
         local slot_equipment, slot_space = self:slot(i)
 
         local slot_equipment, slot_space = self:slot(i)
 
         if slot_equipment == nil or slot_space == nil then
 
         if slot_equipment == nil or slot_space == nil then
cssedit, gkautomate
7,060

edits

Navigation menu