Changes

m
14 revisions imported
Line 3: Line 3:  
local Ship = require('Module:Ship')
 
local Ship = require('Module:Ship')
   −
local format = require('Module:Utils').format
+
local format = require('Module:Core').format
    
local ShipCategoriesKai = BaseData{
 
local ShipCategoriesKai = BaseData{
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_armament() then
 +
table.insert(self._categories, 'Category:Ships that consume New Model 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
Bots, gkautomate
12,557

edits