Add Inventory Combinator which reports the last inventory reported by the external code.

This commit is contained in:
Thomas Deal committed 2016-10-19 20:11:54 -04:00
1 parent 09feb085ef
commit 5e65fa5208
3 files changed
+69 -3

No files matched your search

+31
View File
@@ -238,4 +238,35 @@ data:extend{
result = RX_COMBINATOR_NAME,
requester_paste_multiplier = 1
},
-- Inventory Combinator
local inv = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"])
inv.name = INV_COMBINATOR_NAME
inv.minable.result = INV_COMBINATOR_NAME
inv.item_slot_count = 100
data:extend{
inv,
{
type = "item",
name = INV_COMBINATOR_NAME,
icon = inv.icon,
flags = {"goes-to-quickbar"},
subgroup = "storage",
place_result=INV_COMBINATOR_NAME,
order = "a[items]-b["..INV_COMBINATOR_NAME.."]",
stack_size = 50,
},
{
type = "recipe",
name = INV_COMBINATOR_NAME,
enabled = true, -- TODO do this on a tech somewhere
ingredients =
{
{"constant-combinator", 1},
{"electronic-circuit", 3},
{"advanced-circuit", 1}
},
result = INV_COMBINATOR_NAME,
requester_paste_multiplier = 1
},
}