1
0
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:
RedRafe 2024-11-12 21:41:14 +01:00 committed by GitHub
parent 8645e4b511
commit 5707bd4bec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)