• 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
no edit summary
Line 47: Line 47:  
function NanaminFleetKai:process_los(entry)
 
function NanaminFleetKai:process_los(entry)
 
     local ship = Ship(entry[1], entry[2])
 
     local ship = Ship(entry[1], entry[2])
     if ship:los() and ship:los_max() then
+
     local los = ship:los() or 0
        local los = math.floor(ship:los() + ((ship:los_max() - ship:los()) * tonumber(entry[3]) / 99))
+
    local los_max = ship:los_max() or los
        self._elos = los * 1.69
+
    los = math.floor(los + ((los_max - los) * tonumber(entry[3]) / 99))
    end
+
    self._elos = los * 1.69
 
end
 
end
   Line 67: Line 67:  
         end
 
         end
 
     end
 
     end
 +
    self:process_los(entry)
 
     table.insert(self._items, entry)
 
     table.insert(self._items, entry)
 
end
 
end
48

edits

Navigation menu