mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
fixed up the last things about the output tank
This commit is contained in:
1 parent
9ca013590d
commit
7e67ae5068
2 files changed
+22
-22
No files matched your search
@@ -42,6 +42,7 @@ function AddEntity(entity)
|
|||||||
global.outputTanks = global.outputTanks or {}
|
global.outputTanks = global.outputTanks or {}
|
||||||
--add the chests to a lists if these chests so they can be interated over
|
--add the chests to a lists if these chests so they can be interated over
|
||||||
global.outputTanks[HashPosition(entity.position)] = entity
|
global.outputTanks[HashPosition(entity.position)] = entity
|
||||||
|
entity.active = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+21
-22
@@ -84,15 +84,31 @@ MakeLogisticEntity(table.deepcopy(data.raw["logistic-container"]["logistic-chest
|
|||||||
MakeLogisticEntity(table.deepcopy(data.raw["container"]["iron-chest"]), INPUT_CHEST_NAME, INPUT_CHEST_PICTURE_PATH, { "picture" }, INPUT_CHEST_ICON_PATH)
|
MakeLogisticEntity(table.deepcopy(data.raw["container"]["iron-chest"]), INPUT_CHEST_NAME, INPUT_CHEST_PICTURE_PATH, { "picture" }, INPUT_CHEST_ICON_PATH)
|
||||||
|
|
||||||
--make tanks
|
--make tanks
|
||||||
--MakeLogisticEntity(table.deepcopy(data.raw["storage-tank"]["storage-tank"]), OUTPUT_TANK_NAME, OUTPUT_TANK_PICTURE_PATH, { "pictures", "picture", "sheet" }, OUTPUT_TANK_ICON_PATH)
|
|
||||||
MakeLogisticEntity(table.deepcopy(data.raw["storage-tank"]["storage-tank"]), INPUT_TANK_NAME, INPUT_TANK_PICTURE_PATH, { "pictures", "picture", "sheet" }, INPUT_TANK_ICON_PATH)
|
MakeLogisticEntity(table.deepcopy(data.raw["storage-tank"]["storage-tank"]), INPUT_TANK_NAME, INPUT_TANK_PICTURE_PATH, { "pictures", "picture", "sheet" }, INPUT_TANK_ICON_PATH)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------
|
||||||
|
--[[This section is purely to create the output tank]]--
|
||||||
|
--------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
local CRAFING_FLUID_CATEGORY_NAME = "crafting-fluids"
|
||||||
|
|
||||||
data:extend(
|
data:extend(
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
type = "recipe-category",
|
type = "recipe-category",
|
||||||
name = "crafting-fluids"
|
name = CRAFING_FLUID_CATEGORY_NAME
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -114,8 +130,7 @@ fluidCreator.fluid_boxes =
|
|||||||
},
|
},
|
||||||
off_when_no_fluid_recipe = false
|
off_when_no_fluid_recipe = false
|
||||||
}
|
}
|
||||||
fluidCreator.crafting_categories = {"crafting-fluids"}
|
fluidCreator.crafting_categories = {CRAFING_FLUID_CATEGORY_NAME}
|
||||||
--fluidCreator.energy_source = nil
|
|
||||||
fluidCreator.energy_usage = "1kW"
|
fluidCreator.energy_usage = "1kW"
|
||||||
fluidCreator.ingredient_count = 1
|
fluidCreator.ingredient_count = 1
|
||||||
fluidCreator.module_specification.module_slots = 0
|
fluidCreator.module_specification.module_slots = 0
|
||||||
@@ -127,15 +142,12 @@ for k,v in pairs(data.raw.fluid) do
|
|||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = v.name,
|
name = v.name,
|
||||||
icon = v.icon,
|
icon = v.icon,
|
||||||
category = "crafting-fluids",
|
category = CRAFING_FLUID_CATEGORY_NAME,
|
||||||
energy_required = 1,
|
energy_required = 1,
|
||||||
subgroup = "barrel",
|
subgroup = "barrel",
|
||||||
order = "b[fill-crude-oil-barrel]",
|
order = "b[fill-crude-oil-barrel]",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
ingredients =
|
ingredients = {},
|
||||||
{
|
|
||||||
{type="item", name="none", amount=1}
|
|
||||||
},
|
|
||||||
results=
|
results=
|
||||||
{
|
{
|
||||||
{type="fluid", name=v.name, amount=-1}
|
{type="fluid", name=v.name, amount=-1}
|
||||||
@@ -144,19 +156,6 @@ for k,v in pairs(data.raw.fluid) do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
data:extend(
|
|
||||||
{
|
|
||||||
{
|
|
||||||
type = "item",
|
|
||||||
name = "none",
|
|
||||||
icon = "__clusterio__/graphics/icons/none.png",
|
|
||||||
flags = { "goes-to-quickbar" },
|
|
||||||
subgroup = "intermediate-product",
|
|
||||||
order = "c[other]-a[power-switch]",
|
|
||||||
stack_size= 1,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user