mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +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:
parent
a271e9afac
commit
6d68639307
@ -167,7 +167,7 @@ function Experience.update_inventory_slots(force, level_up)
|
||||
end
|
||||
|
||||
-- remove the current buff
|
||||
local old_modifier = (force.character_inventory_slots_bonus == 0) and 0 or force.character_inventory_slots_bonus - inventory_slots.active_modifier
|
||||
local old_modifier = force.character_inventory_slots_bonus - inventory_slots.active_modifier
|
||||
old_modifier = old_modifier >= 0 and old_modifier or 0
|
||||
-- update the active modifier
|
||||
inventory_slots.active_modifier = inventory_slots.research_modifier + inventory_slots.level_modifier
|
||||
|
Loading…
x
Reference in New Issue
Block a user