Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:NanaminFleetKai
(view source)
Revision as of 09:15, 20 April 2015
17 bytes added
,
9 years ago
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
Nanamin
48
edits