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 08:56, 20 April 2015
286 bytes added
,
9 years ago
m
no edit summary
Line 42:
Line 42:
if self._hq_lvl % 5 == 0 then
if self._hq_lvl % 5 == 0 then
self._hq_lvl = self._hq_lvl + 5
self._hq_lvl = self._hq_lvl + 5
+
end
+
end
+
+
function NanaminFleetKai:process_los(entry)
+
local ship = Ship(entry[1], entry[2])
+
if ship:los() and ship:los_max() then
+
local los = math.floor(ship:los() + ((ship:los_max() - ship:los())))
+
self._elos = los * 1.69
end
end
end
end
Line 49:
Line 57:
for index, item in ipairs(args) do
for index, item in ipairs(args) do
if item == "-" and #entry > 0 then
if item == "-" and #entry > 0 then
+
self:process_los(entry)
table.insert(self._items, entry)
table.insert(self._items, entry)
entry = {}
entry = {}
Nanamin
48
edits