1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00
ComfyFactorio/modules/backpack_research.lua

10 lines
376 B
Lua
Raw Normal View History

2019-02-10 06:16:01 +02:00
-- backpack research -- researching mining efficiency increases your backpack capacity (inventory slots)
2021-03-24 21:14:55 +02:00
local Event = require 'utils.event'
2019-02-10 06:16:01 +02:00
local function on_research_finished(event)
2021-03-24 17:46:00 +02:00
event.research.force.character_inventory_slots_bonus = game.forces.player.mining_drill_productivity_bonus * 100
2019-02-10 06:16:01 +02:00
end
2021-03-24 21:14:55 +02:00
Event.add(defines.events.on_research_finished, on_research_finished)