Changes
Fix basic resources
function EquipmentData:improvement_resources(slider, product, stars)
function EquipmentData:improvement_resources(slider, product, stars)
if self._improvements and self._improvements._products and self._improvements._products[product] then
if self._improvements then
if not stars then
if not stars then
return {
return {
bauxite = product_info._bauxite,
bauxite = product_info._bauxite,
}
}
end
if self._improvements._products and self._improvements._products[product] then
local product_info = self._improvements._product[products]
if product_info[stars] then
return {
devmat = slider and product_info[stars]._development_material_x or product_info[stars]._development_material,
screw = slider and product_info[stars]._improvement_material_x or product_info[stars]._improvement_material,
equipment = product_info._equipment,
}
end
end
end
end
end