Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:NanaminFleet
(view source)
Revision as of 23:32, 9 April 2015
127 bytes added
,
9 years ago
m
no edit summary
Line 74:
Line 74:
row = {row[3], row[4]}
row = {row[3], row[4]}
return self:equips(row)
return self:equips(row)
+
end
+
+
function NanaminFleet:process_hq_lvl(item_key)
+
local split = mw.ustring.find(item_key, '=')
+
local value = mw.ustring.sub(item_key, split + 1)
+
return tonumber(value)
end
end
Line 104:
Line 110:
item = false
item = false
−
local split = mw.ustring.find(item_key, '=')
+
self._hq_lvl =
self:process_hq_lvl
(
item_key
)
−
self._hq_lvl =
tonumber
(
mw.ustring.sub(self._args[index], split + 1)
)
--Get bracket of 5
--Get bracket of 5
Line 242:
Line 247:
})
})
table.insert(self._rows, self._row_starter)
table.insert(self._rows, self._row_starter)
−
table.insert(self._rows, format
(
self._route_cell_template,
{
route = self._route}
)
)
+
table.insert(self._rows, format
{
self._route_cell_template,
+
route = self._route
+
})
end
end
end
end
Nanamin
48
edits