1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-02-09 13:37:05 +02:00

Redmew QoL additions (#870)

Added research_queue_enabled switch

Fixed construction robots placed by players in early game is unminable.
Also Fixed construction robots being bugged as unminable
This commit is contained in:
Simon 2019-03-09 23:42:03 +01:00 committed by GitHub
parent 8a83b91900
commit 4795fdd059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -307,7 +307,9 @@ global.config = {
-- turns on entity info aka alt-mode on first joining
set_alt_on_create = true,
-- prevents personal construction robots from being mined by other players
save_bots = true
save_bots = true,
-- enable research_queue
research_queue = true
},
-- adds a useless button with the biter percentage
evolution_progress = {

View File

@ -156,7 +156,7 @@ local function preserve_bot(event)
if logistic_network == nil or not logistic_network.valid then
--prevents an orphan bot from being unremovable
entity.minable = false
entity.minable = true
return
end
@ -166,6 +166,7 @@ local function preserve_bot(event)
--checks if construction-robot is part of a mobile logistic network
if owner.name ~= 'player' then
entity.minable = true
return
end
@ -338,4 +339,12 @@ if config.save_bots then
Event.add(defines.events.on_selected_entity_changed, preserve_bot)
end
if config.research_queue then
Event.on_init(
function()
game.forces.player.research_queue_enabled = true
end
)
end
return Public