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:
parent
8a83b91900
commit
4795fdd059
@ -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 = {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user