1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Update map_gen/maps/diggy/feature/experience.lua

Co-Authored-By: SimonFlapse <44922798+SimonFlapse@users.noreply.github.com>
This commit is contained in:
Matthew 2019-02-21 22:42:48 +01:00 committed by GitHub
parent 944aaa15c7
commit a271e9afac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ function Experience.update_mining_speed(force, level_up)
mining_efficiency.level_modifier = mining_efficiency.level_modifier + (value * 0.01)
end
-- remove the current buff
local old_modifier = (force.manual_mining_speed_modifier == 0) and 0 or force.manual_mining_speed_modifier - mining_efficiency.active_modifier
local old_modifier = force.manual_mining_speed_modifier - mining_efficiency.active_modifier
old_modifier = old_modifier >= 0 and old_modifier or 0
-- update the active modifier
mining_efficiency.active_modifier = mining_efficiency.research_modifier + mining_efficiency.level_modifier