This commit is contained in:
2025-01-28 17:55:04 +09:00
parent 4bc18e10f5
commit d475a55460
5 changed files with 10 additions and 2 deletions

View File

@@ -87,7 +87,11 @@ Selection.on_selection(SelectionConvertArea, function(event)
local entities
if config.power_on_space and event.surface and event.surface.platform and target == "energy" then
entities = event.surface.find_entities_filtered{ area = area, name = "constant-combinator", force = player.force }
if player.force.technologies[config.power_on_space_research.name].level >= config.power_on_space_research.level then
entities = event.surface.find_entities_filtered{ area = area, name = "constant-combinator", force = player.force }
else
player.print{ "vlayer.power-on-space-research", config.power_on_space_research.name }
end
else
entities = event.surface.find_entities_filtered{ area = area, name = "steel-chest", force = player.force }
end