1
0

Merge pull request #4 from Deadlock989/patch-2

Update steel-display.lua
This commit is contained in:
Wyrrrd
2020-11-22 11:51:20 +00:00
committed by GitHub
+9 -9
View File
@@ -1,11 +1,11 @@
local DID = require("globals")
for index, force in pairs(game.forces) do
local technologies = force.technologies
local recipes = force.recipes
if technologies["steel-processing"].researched then
recipes["steel-display-small"].enabled = true
recipes["steel-display-medium"].enabled = true
recipes["steel-display"].enabled = true
end
for display,displaydata in pairs(DID.displays) do
if displaydata.IR_unlock and force.technologies[displaydata.IR_unlock] and force.technologies[displaydata.IR_unlock].researched then
force.recipes[display].enabled = true
elseif displaydata.unlock and force.technologies[displaydata.unlock] and force.technologies[displaydata.unlock].researched then
force.recipes[display].enabled = true
end
end
end