Changes
Don't add static categories when no name provided
function ShipCategoriesKai:create_ship()
function ShipCategoriesKai:create_ship()
local name = self._args.name or self._args[1]
if name then
self._ship = Ship(name, self._args.model)
end
end
end
self._categories = {}
self._categories = {}
self:create_ship()
self:create_ship()
self:create_static_categories()
if self._ship then
self:create_static_categories()
self:create_type_categories()
self:create_class_categories()
--self:create_rarity_categories()
self:create_construction_categories()
self:create_remodel_categories()
self:create_stock_equipment_categories()
end
return self:write_categories()
return self:write_categories()
end
end
return ShipCategoriesKai
return ShipCategoriesKai