mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-30 23:17:53 +02:00
10 lines
376 B
Lua
10 lines
376 B
Lua
-- backpack research -- researching mining efficiency increases your backpack capacity (inventory slots)
|
|
|
|
local Event = require 'utils.event'
|
|
|
|
local function on_research_finished(event)
|
|
event.research.force.character_inventory_slots_bonus = game.forces.player.mining_drill_productivity_bonus * 100
|
|
end
|
|
|
|
Event.add(defines.events.on_research_finished, on_research_finished)
|