Changes

credits to gaka for fixing my mess
Line 59: Line 59:     
function ShipCategoriesKai:create_remodel_categories()
 
function ShipCategoriesKai:create_remodel_categories()
local remodel_blueprint = self._ship:remodel_blueprint()
+
if self._ship:remodel_blueprint() then
if remodel_blueprint then
+
table.insert(self._categories, 'Category:Ships that consume Blueprint during remodeling')
table.insert(self._categories, format{"Category:Ships that require a blueprint for remodelling"})
+
end
 +
if self._ship:remodel_catapult() then
 +
table.insert(self._categories, 'Category:Ships that consume Prototype Flight Deck Catapult during remodeling')
 +
end
 +
if self._ship:remodel_report() then
 +
table.insert(self._categories, 'Category:Ships that consume Action Report during remodeling')
 +
end
 +
if self._ship:remodel_gunmat() then
 +
table.insert(self._categories, 'Category:Ships that consume New Model Gun Mount Improvement Material during remodeling')
 +
end
 +
if self._ship:remodel_airmat() then
 +
table.insert(self._categories, 'Category:Ships that consume New Model Aerial Armament Material during remodeling')
 +
end
 +
if self._ship:remodel_development_material() then
 +
table.insert(self._categories, 'Category:Ships that consume Development Material during remodeling')
 +
end
 +
if self._ship:remodel_construction_material() then
 +
table.insert(self._categories, 'Category:Ships that consume Instant Construction Material during remodeling')
 
end
 
end
 
end
 
end
advmod, cssedit, janitor, Moderators, prechecked, Widget editors
7,313

edits