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:
parent
93b800583c
commit
b98e613724
@ -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})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user