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 05:40, 29 August 2018
8 bytes added
,
6 years ago
m
no edit summary
Line 27:
Line 27:
end
end
-- check if we already have it
-- check if we already have it
−
if self._ships[name] and self._ships[name][model] then
+
--
if self._ships[name] and self._ships[name][model] then
−
return self._ships[name][model]
+
--
return self._ships[name][model]
−
else
+
--
else
local ship = self._data_class(self:get_table(name, model))
local ship = self._data_class(self:get_table(name, model))
if not self._ships[name] then
if not self._ships[name] then
Line 36:
Line 36:
self._ships[name][model] = ship
self._ships[name][model] = ship
return ship
return ship
−
end
+
--
end
end
end
がか
cssedit, gkautomate
7,064
edits