Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Ship
(view source)
Revision as of 10:43, 22 August 2019
123 bytes added
,
5 years ago
no edit summary
Line 106:
Line 106:
end
end
−
function Ship:get_module(name)
+
function Ship:get_module(name
, isEnemy
)
if name == nil then
if name == nil then
return nil
return nil
Line 112:
Line 112:
name = self:process_ship_key(name)
name = self:process_ship_key(name)
end
end
−
return
mw
.
ustring
.format('Module:%s', name)
+
if name:sub(1, 5) == 'Vita:' and isEnemy then
+
return
string
.
format('Module:Data/Enemy/%s', name)
+
else
+
return string
.format('Module:%s', name)
+
end
end
end
がか
cssedit, gkautomate
7,064
edits