reaction-chamber.lua:
Code: Select all
data:extend({
{
type = "assembling-machine",
name = "reaction chamber",
icon = "__chemfactory__/graphics/icons/reaction-chamber.png",
flags = {"placeable-neutral","placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "reaction chamber"},
fast_replaceable_group = "electrolyser",
corpse = "big-remnants",
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
max_health = 275,
crafting_categories = {"oil-processing"},
allowed_effects = {"consumption", "speed", "productivity", "pollution"},
module_specification =
{
module_slots = 5,
},
crafting_speed = 2,
ingredient_count = 6,
energy_usage = "300kW",
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
emissions = 0.01 / 5
},
animation =
{
north =
{
filename = "__Chemfactory__/graphics/icons/reaction-chamber.png",
width = 108,
height = 130,
frame_count = 1,
shift = {0, -0.28125}
},
west =
{
filename = "__Chemfactory__/graphics/icons/reaction-chamber.png",
width = 112,
height = 120,
frame_count = 1,
shift = {0, -0.21875}
},
south =
{
filename = "__Chemfactory__/graphics/icons/reaction-chamber.png",
width = 108,
height = 130,
frame_count = 1,
shift = {0, -0.28125}
},
east =
{
filename = "__Chemfactory__/graphics/icons/reaction-chamber.png",
width = 112,
height = 120,
frame_count = 1,
shift = {0, -0.21875}
}
},
working_sound =
{
sound = {
{
filename = "__base__/sound/chemical-plant.ogg",
volume = 0.8
}
},
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
apparent_volume = 1.5,
},
}
})
Code: Select all
data:extend({
{
type = "item",
name = "reaction chamber",
icon = "__Chemfactory__/graphics/icons/reaction-chamber.png",
flags = {"goes-to-quickbar"},
subgroup = "ammo",
place_result = "reaction chamber",
stack_size = 10
}
})