• 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 21: Line 21:  
end
 
end
   −
function NanaminFunctions.add_to_elos_ship(current_elos, ship)
+
function NanaminFunctions.add_to_elos_ship(current_elos, entry, use_los)
 +
    local ship = Ship(entry[1], entry[2])
 
     local los = ship:los() or 0
 
     local los = ship:los() or 0
 
     local los_max = ship:los_max() or los
 
     local los_max = ship:los_max() or los
     los = math.floor(los + ((los_max - los) * tonumber(entry[3]) / 99))
+
     if use_los then
 +
        los = tonumber(entry[3])
 +
    else
 +
        los = math.floor(los + ((los_max - los) * tonumber(entry[3]) / 99))
 +
    end
 
     return current_elos + math.sqrt(los) * 1.69
 
     return current_elos + math.sqrt(los) * 1.69
 
end
 
end
48

edits

Navigation menu