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 11:48, 22 June 2020
91 bytes removed
,
4 years ago
no edit summary
Line 110:
Line 110:
function Ship:get_module(name, isEnemy)
function Ship:get_module(name, isEnemy)
−
if name
== nil
then
+
if
not
name then
return nil
return nil
−
else
−
name = self:process_ship_key(name)
−
end
−
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
+
name = self:process_ship_key(name)
+
return string.format('Module:Data/%s/%s', isEnemy and 'Enemy' or 'Ship', name)
end
end
がか
cssedit, gkautomate
7,064
edits