Add TA4 recycle machine

This commit is contained in:
Joachim Stolberg 2021-02-05 20:12:12 +01:00
parent 2f7dbc1771
commit e69e6f5370
2 changed files with 3 additions and 2 deletions

View File

@ -77,10 +77,10 @@ local function prepare_tiles(tiles, stage, power_png)
local tbl = {} local tbl = {}
for _,item in ipairs(tiles) do for _,item in ipairs(tiles) do
if type(item) == "string" then if type(item) == "string" then
tbl[#tbl+1] = item:gsub("#", stage):gsub("{power}", power_png) tbl[#tbl+1] = item:gsub("#", stage):gsub("{power}", power_png):gsub("@@", '#')
else else
local temp = table.copy(item) local temp = table.copy(item)
temp.image = temp.image:gsub("#", stage):gsub("{power}", power_png) temp.image = temp.image:gsub("#", stage):gsub("{power}", power_png):gsub("@@", '#')
tbl[#tbl+1] = temp tbl[#tbl+1] = temp
end end
end end

View File

@ -160,6 +160,7 @@ dofile(MP.."/basic_machines/quarry.lua")
dofile(MP.."/basic_machines/ta4_chest.lua") dofile(MP.."/basic_machines/ta4_chest.lua")
dofile(MP.."/basic_machines/ta4_injector.lua") dofile(MP.."/basic_machines/ta4_injector.lua")
dofile(MP.."/basic_machines/itemsource.lua") dofile(MP.."/basic_machines/itemsource.lua")
dofile(MP.."/basic_machines/recycler.lua")
-- Liquids II -- Liquids II
dofile(MP.."/liquids/tank.lua") dofile(MP.."/liquids/tank.lua")