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 07:08, 9 April 2015
229 bytes added
,
9 years ago
m
no edit summary
Line 82:
Line 82:
else
else
ship_name = mw.ustring.sub(item_key, 1, split - 1)
ship_name = mw.ustring.sub(item_key, 1, split - 1)
−
ship_suffix
= mw.ustring.sub(item_key, split + 1, -1)
+
local ship_suffix_and_los
= mw.ustring.sub(item_key, split + 1,
-1)
+
ship_suffix = mw.ustring.sub(ship_suffix_and_los, mw.ustring.find(ship_suffix_and_los, '/')
- 1)
if ship_suffix == "Regular" then
if ship_suffix == "Regular" then
ship_suffix = nil
ship_suffix = nil
Line 121:
Line 122:
end
end
−
if item:
los()
~
=
nil then
+
local
los
= mw.ustring.sub(item_key, mw.ustring.find
(
item_key, '/') + 1
)
−
self._elos = self._elos +
item:
los
(
) * 1.69
+
los
=
tonumber(mw.ustring.sub(los, mw.ustring.find(los, '/') + 1))
−
end
+
self._elos = self._elos +
math.sqrt(
los) * 1.69
else
else
item = self._equip_class(self:process_item_key(item_key))
item = self._equip_class(self:process_item_key(item_key))
Nanamin
48
edits