1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00
ComfyFactorio/modules/backpack_research.lua

10 lines
376 B
Lua
Raw Normal View History

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