1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-17 21:08:08 +02:00

Disable requester chest recipe for danger bobs ore. (#1301)

This commit is contained in:
grilledham 2022-03-17 20:17:31 +00:00 committed by GitHub
parent 93b800583c
commit b98e613724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,26 @@ Event.on_init(function()
RS.get_surface().peaceful_mode = true
end)
Event.add(defines.events.on_research_finished, function(event)
local research = event.research
if not research.valid then
return
end
for _, effect in pairs(research.effects) do
if effect.type ~= 'unlock-recipe' then
goto continue
end
local name = effect.recipe
if name == 'logistic-chest-requester' then
game.forces.player.recipes[name].enabled = false
end
::continue::
end
end)
local terraforming = require 'map_gen.maps.danger_ores.modules.terraforming'
terraforming({start_size = 10 * 32, min_pollution = 400, max_pollution = 20000, pollution_increment = 6})