mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-07 23:02:06 +02:00
Fix custom effects on technology effects reset (#1446)
This commit is contained in:
parent
8645e4b511
commit
5707bd4bec
@ -27,3 +27,12 @@ Event.add(defines.events.on_research_finished, function(event)
|
||||
'[color=green][font=var]+'..force.worker_robots_storage_bonus..'[/font][/color]'
|
||||
}, '\t\t'))
|
||||
end)
|
||||
|
||||
Event.add(defines.events.on_technology_effects_reset, function(event)
|
||||
local force = event.force
|
||||
if not (force and force.valid) then
|
||||
return
|
||||
end
|
||||
force.worker_robots_storage_bonus = force.worker_robots_storage_bonus + math.floor(force.mining_drill_productivity_bonus / 0.1)
|
||||
force.mining_drill_productivity_bonus = 0
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user