Line 19: |
Line 19: |
| end | | end |
| return current_fp | | return current_fp |
| + | end |
| + | |
| + | function NanaminFunctions.add_to_elos_ship(current_elos, ship) |
| + | local los = ship:los() or 0 |
| + | local los_max = ship:los_max() or los |
| + | los = math.floor(los + ((los_max - los) * tonumber(entry[3]) / 99)) |
| + | return current_elos + math.sqrt(los) * 1.69 |
| end | | end |
| | | |