https://lua-api.factorio.com/latest/Lua ... researched
I have a custom multiple level, upgrade-able technology. So like an infinite tech.
If I do the below pseudo code the tech is enabled still after un-researching it:
Code: Select all
local tech = game.forces["player"].technologies["my-tech"]
tech.enabled = false
tech.level = 1
tech.researched = false
Code: Select all
local tech = game.forces["player"].technologies["my-tech"]
tech.level = 1
tech.researched = false
tech.enabled = false