Changes

no edit summary
Line 118: Line 118:  
table.remove(ships, index)
 
table.remove(ships, index)
 
end
 
end
for _, stars in ipairs(self._improvement_brackets) do
+
for _, stars in ipairs(item:improvement_brackets(product)) do
 
table.insert(result, {item = item, product = product, stars = stars, ships = ships, ship_data = ship_data, availability = availability, resources = item:improvement_resources(false, product, stars), resources_x = item:improvement_resources(true, product, stars)})
 
table.insert(result, {item = item, product = product, stars = stars, ships = ships, ship_data = ship_data, availability = availability, resources = item:improvement_resources(false, product, stars), resources_x = item:improvement_resources(true, product, stars)})
 
end
 
end
 
end
 
end
 
else
 
else
for _, stars in ipairs(self._improvement_brackets) do
+
table.insert(result, {item = item, stars = nil})
table.insert(result, {item = item, stars = stars})
  −
end
   
end
 
end
 
end
 
end
Anonymous user