Changes

Fix argument requirements, add blueprint category
Line 14: Line 14:     
function ShipCategoriesKai:create_ship()
 
function ShipCategoriesKai:create_ship()
self._ship = Ship(self._args.ship)
+
self._ship = Ship(self._args.name or self._args[1], self._args.model)
 
end
 
end
   Line 49: Line 49:  
if buildable_lsc then
 
if buildable_lsc then
 
table.insert(self._categories, format{"Category:Ships buildable in Large Ship Construction"})
 
table.insert(self._categories, format{"Category:Ships buildable in Large Ship Construction"})
 +
end
 +
end
 +
 +
function ShipCategoriesKai:create_remodel_categories()
 +
local remodel_blueprint = self._ship:remodel_blueprint()
 +
if remodel_blueprint then
 +
table.insert(self._categories, format{"Category:Ships that require a blueprint for remodelling"})
 
end
 
end
 
end
 
end
Line 78: Line 85:  
self:create_type_categories()
 
self:create_type_categories()
 
self:create_class_categories()
 
self:create_class_categories()
self:create_rarity_categories()
+
--self:create_rarity_categories()
 
self:create_construction_categories()
 
self:create_construction_categories()
 +
self:create_remodel_categories()
 
self:create_stock_equipment_categories()
 
self:create_stock_equipment_categories()
 
return self:write_categories()
 
return self:write_categories()
Anonymous user