mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
Made mining speed scale a bit quicker the first couple of levels
This commit is contained in:
parent
16f3241c98
commit
fadce394c0
@ -79,7 +79,9 @@ function Experience.update_mining_speed(force, level_up)
|
||||
level_up = level_up ~= nil and level_up or 0
|
||||
local buff = config.buffs['mining_speed']
|
||||
if level_up > 0 and buff ~= nil then
|
||||
local value = (buff.double_level ~= nil and level_up % buff.double_level == 0) and buff.value * 2 or buff.value
|
||||
local level = ForceControl.get_force_data(force).current_level
|
||||
local adjusted_value = floor(math.max(buff.value, 24*0.9^level))
|
||||
local value = (buff.double_level ~= nil and level_up % buff.double_level == 0) and adjusted_value * 2 or adjusted_value
|
||||
mining_efficiency.level_modifier = mining_efficiency.level_modifier + (value * 0.01)
|
||||
end
|
||||
-- remove the current buff
|
||||
|
Loading…
x
Reference in New Issue
Block a user