35 lines
1.4 KiB
Lua
35 lines
1.4 KiB
Lua
-- Deadlock stacking recipes
|
|
|
|
local util = require("data-util");
|
|
|
|
if deadlock and deadlock["add_stack"] then
|
|
deadlock.add_stack("tin-ore", "__bztin__/graphics/icons/stacked/tin-ore-stacked.png", "deadlock-stacking-1", 64)
|
|
deadlock.add_stack("tin-plate", "__bztin__/graphics/icons/stacked/tin-plate-stacked.png", "deadlock-stacking-1", 128)
|
|
deadlock.add_stack("solder", "__bztin__/graphics/icons/stacked/solder-stacked.png", "deadlock-stacking-1", 128)
|
|
if data.raw.item["tinned-cable"] then
|
|
deadlock.add_stack("tinned-cable", nil , "deadlock-stacking-2", nil)
|
|
end
|
|
if data.raw.item["bronze-plate"] then
|
|
deadlock.add_stack("bronze-plate", nil , "deadlock-stacking-1", nil)
|
|
end
|
|
if mods.Krastorio2 then
|
|
deadlock.add_stack("enriched-tin", "__bztin__/graphics/icons/stacked/enriched-tin-ore-stacked.png" , "deadlock-stacking-3", 128)
|
|
end
|
|
end
|
|
|
|
-- Deadlock crating recipes
|
|
if deadlock_crating then
|
|
deadlock_crating.add_crate("tin-ore", "deadlock-crating-1")
|
|
deadlock_crating.add_crate("tin-plate", "deadlock-crating-1")
|
|
deadlock_crating.add_crate("solder", "deadlock-crating-1")
|
|
if data.raw.item["tinned-cable"] then
|
|
deadlock_crating.add_crate("tinned-cable", "deadlock-crating-2")
|
|
end
|
|
if data.raw.item["bronze-plate"] then
|
|
deadlock_crating.add_crate("bronze-plate", "deadlock-crating-1")
|
|
end
|
|
if mods.Krastorio2 then
|
|
deadlock_crating.add_crate("enriched-tin", "deadlock-crating-3")
|
|
end
|
|
end
|
|
|