2019-10-03 08:43:43 +00:00
|
|
|
data:extend({
|
|
|
|
{
|
2019-10-03 10:06:47 +00:00
|
|
|
type = "assembling-machine",
|
2019-10-04 17:20:34 +00:00
|
|
|
name = "air-filter-machine-1",
|
|
|
|
icon = "__better-air-filtering__/graphics/icons/air-filter-machine-1.png",
|
2019-10-03 10:06:47 +00:00
|
|
|
icon_size = 32,
|
|
|
|
flags = { "placeable-neutral", "placeable-player", "player-creation" },
|
2019-10-04 17:20:34 +00:00
|
|
|
minable = { hardness = 0.2, mining_time = 0.5, result = "air-filter-machine-1" },
|
2019-10-03 10:06:47 +00:00
|
|
|
fast_replaceable_group = "air-filter-machine",
|
|
|
|
max_health = 150,
|
|
|
|
corpse = "medium-remnants",
|
|
|
|
alert_icon_shift = util.by_pixel(-3, -12),
|
|
|
|
collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
|
|
|
|
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
|
|
|
|
animation =
|
|
|
|
{
|
2019-10-05 16:41:18 +00:00
|
|
|
layers =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-1.png",
|
|
|
|
priority="medium",
|
|
|
|
width = 108,
|
|
|
|
height = 114,
|
|
|
|
frame_count = 32,
|
|
|
|
animation_speed=0.8,
|
|
|
|
line_length = 8,
|
|
|
|
shift = util.by_pixel(0, 2)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-shadow.png",
|
|
|
|
priority="medium",
|
|
|
|
width = 95,
|
|
|
|
height = 83,
|
|
|
|
frame_count = 1,
|
|
|
|
line_length = 1,
|
|
|
|
repeat_count = 32,
|
|
|
|
draw_as_shadow = true,
|
|
|
|
shift = util.by_pixel(8.5, 5.5)
|
|
|
|
}
|
|
|
|
}
|
2019-10-03 10:06:47 +00:00
|
|
|
},
|
2019-10-03 18:31:43 +00:00
|
|
|
match_animation_speed_to_activity = true,
|
2019-10-03 10:06:47 +00:00
|
|
|
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
|
|
|
|
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
|
|
|
|
working_sound =
|
|
|
|
{
|
|
|
|
sound = { { filename = "__base__/sound/electric-furnace.ogg", volume = 0.7 } },
|
|
|
|
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
|
|
|
|
apparent_volume = 1.5,
|
|
|
|
},
|
|
|
|
fluid_boxes =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
production_type = "input",
|
|
|
|
base_area = 10,
|
|
|
|
base_level = -1,
|
2019-10-03 18:31:43 +00:00
|
|
|
pipe_connections = {},
|
2019-10-03 10:06:47 +00:00
|
|
|
},
|
|
|
|
off_when_no_fluid_recipe = true
|
|
|
|
},
|
2019-10-03 18:31:43 +00:00
|
|
|
crafting_categories = { "air-filtering-basic" },
|
|
|
|
crafting_speed = 0.5,
|
2019-10-03 10:06:47 +00:00
|
|
|
energy_source =
|
|
|
|
{
|
|
|
|
type = "burner",
|
|
|
|
fuel_category = "pollution-filter",
|
|
|
|
usage_priority = "secondary-input",
|
|
|
|
fuel_inventory_size = 1,
|
|
|
|
burnt_inventory_size = 1,
|
|
|
|
},
|
2019-10-04 17:20:34 +00:00
|
|
|
energy_usage = "100kW",
|
2019-10-03 10:06:47 +00:00
|
|
|
fixed_recipe = "filter-air",
|
|
|
|
ingredient_count = 1,
|
|
|
|
module_slots = 0,
|
2019-10-05 20:08:15 +00:00
|
|
|
allowed_effects=nil
|
2019-10-03 08:43:43 +00:00
|
|
|
},
|
|
|
|
{
|
2019-10-03 10:06:47 +00:00
|
|
|
type = "assembling-machine",
|
2019-10-04 17:20:34 +00:00
|
|
|
name = "air-filter-machine-2",
|
|
|
|
icon = "__better-air-filtering__/graphics/icons/air-filter-machine-2.png",
|
2019-10-03 10:06:47 +00:00
|
|
|
icon_size = 32,
|
|
|
|
flags = { "placeable-neutral", "placeable-player", "player-creation" },
|
2019-10-04 17:20:34 +00:00
|
|
|
minable = { hardness = 0.2, mining_time = 0.5, result = "air-filter-machine-2" },
|
2019-10-03 10:06:47 +00:00
|
|
|
fast_replaceable_group = "air-filter-machine",
|
2019-10-05 16:41:18 +00:00
|
|
|
next_upgrade = "air-filter-machine-3",
|
|
|
|
max_health = 200,
|
2019-10-03 10:06:47 +00:00
|
|
|
corpse = "medium-remnants",
|
|
|
|
alert_icon_shift = util.by_pixel(-3, -12),
|
|
|
|
collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
|
|
|
|
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
|
|
|
|
animation =
|
|
|
|
{
|
2019-10-05 16:41:18 +00:00
|
|
|
layers =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-2.png",
|
|
|
|
priority = "medium",
|
|
|
|
width = 108,
|
|
|
|
height = 110,
|
|
|
|
frame_count = 32,
|
|
|
|
line_length = 8,
|
|
|
|
shift = util.by_pixel(0, 4),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-shadow.png",
|
|
|
|
priority="medium",
|
|
|
|
width = 95,
|
|
|
|
height = 83,
|
|
|
|
frame_count = 1,
|
|
|
|
line_length = 1,
|
|
|
|
repeat_count = 32,
|
|
|
|
draw_as_shadow = true,
|
|
|
|
shift = util.by_pixel(8.5, 5.5)
|
|
|
|
}
|
|
|
|
}
|
2019-10-03 10:06:47 +00:00
|
|
|
},
|
2019-10-03 18:31:43 +00:00
|
|
|
match_animation_speed_to_activity = true,
|
2019-10-03 10:06:47 +00:00
|
|
|
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
|
|
|
|
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
|
|
|
|
working_sound =
|
|
|
|
{
|
|
|
|
sound = { { filename = "__base__/sound/electric-furnace.ogg", volume = 0.7 } },
|
|
|
|
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
|
|
|
|
apparent_volume = 1.5,
|
|
|
|
},
|
|
|
|
fluid_boxes =
|
|
|
|
{
|
2019-10-03 18:31:43 +00:00
|
|
|
{
|
|
|
|
production_type = "input",
|
|
|
|
base_area = 10,
|
|
|
|
base_level = -1,
|
|
|
|
pipe_connections= {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
production_type = "input",
|
|
|
|
pipe_picture = assembler2pipepictures(),
|
|
|
|
pipe_covers = pipecoverspictures(),
|
|
|
|
base_area = 10,
|
|
|
|
base_level = -1,
|
|
|
|
pipe_connections = {{ type="input", position = {0, -2} }}
|
|
|
|
},
|
2019-10-03 10:06:47 +00:00
|
|
|
{
|
|
|
|
production_type = "output",
|
2019-10-03 18:31:43 +00:00
|
|
|
pipe_picture = assembler2pipepictures(),
|
2019-10-03 10:06:47 +00:00
|
|
|
pipe_covers = pipecoverspictures(),
|
|
|
|
base_area = 10,
|
|
|
|
base_level = 1,
|
|
|
|
pipe_connections = { { type = "output", position = { 0, 2 } } },
|
|
|
|
secondary_draw_orders = { north = -1 }
|
|
|
|
},
|
|
|
|
off_when_no_fluid_recipe = true
|
|
|
|
},
|
2019-10-03 18:31:43 +00:00
|
|
|
crafting_categories = { "air-filtering-advanced" },
|
2019-10-03 10:06:47 +00:00
|
|
|
crafting_speed = 1.0,
|
|
|
|
energy_source =
|
|
|
|
{
|
|
|
|
type = "electric",
|
|
|
|
usage_priority = "secondary-input",
|
2019-10-05 20:08:15 +00:00
|
|
|
drain="100kW",
|
2019-10-03 10:06:47 +00:00
|
|
|
},
|
2019-10-05 20:08:15 +00:00
|
|
|
energy_usage = "50kW",
|
2019-10-06 21:04:22 +00:00
|
|
|
ingredient_count = 2,
|
2019-10-03 10:06:47 +00:00
|
|
|
module_slots = 0,
|
2019-10-05 20:08:15 +00:00
|
|
|
allowed_effects=nil
|
2019-10-03 08:43:43 +00:00
|
|
|
},
|
|
|
|
{
|
2019-10-03 10:06:47 +00:00
|
|
|
type = "assembling-machine",
|
2019-10-04 17:20:34 +00:00
|
|
|
name = "air-filter-machine-3",
|
|
|
|
icon = "__better-air-filtering__/graphics/icons/air-filter-machine-3.png",
|
2019-10-03 10:06:47 +00:00
|
|
|
icon_size = 32,
|
|
|
|
flags = { "placeable-neutral", "placeable-player", "player-creation" },
|
2019-10-04 17:20:34 +00:00
|
|
|
minable = { hardness = 0.2, mining_time = 0.5, result = "air-filter-machine-3" },
|
2019-10-03 10:06:47 +00:00
|
|
|
fast_replaceable_group = "air-filter-machine",
|
2019-10-05 16:41:18 +00:00
|
|
|
max_health = 250,
|
2019-10-03 10:06:47 +00:00
|
|
|
corpse = "medium-remnants",
|
|
|
|
collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
|
|
|
|
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
|
|
|
|
animation =
|
|
|
|
{
|
2019-10-05 16:41:18 +00:00
|
|
|
layers =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-3.png",
|
|
|
|
priority = "medium",
|
|
|
|
width = 108,
|
|
|
|
height = 119,
|
|
|
|
frame_count = 32,
|
|
|
|
line_length = 8,
|
|
|
|
shift = util.by_pixel(0, -0.5),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-shadow.png",
|
|
|
|
priority="medium",
|
|
|
|
width = 95,
|
|
|
|
height = 83,
|
|
|
|
frame_count = 1,
|
|
|
|
line_length = 1,
|
|
|
|
repeat_count = 32,
|
|
|
|
draw_as_shadow = true,
|
|
|
|
shift = util.by_pixel(8.5, 5.5)
|
|
|
|
}
|
|
|
|
}
|
2019-10-03 10:06:47 +00:00
|
|
|
},
|
2019-10-03 18:31:43 +00:00
|
|
|
match_animation_speed_to_activity = true,
|
2019-10-03 10:06:47 +00:00
|
|
|
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
|
|
|
|
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
|
|
|
|
working_sound =
|
|
|
|
{
|
|
|
|
sound = { { filename = "__base__/sound/electric-furnace.ogg", volume = 0.7 } },
|
|
|
|
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
|
|
|
|
apparent_volume = 1.5,
|
|
|
|
},
|
|
|
|
fluid_boxes =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
production_type = "input",
|
|
|
|
base_area = 10,
|
|
|
|
base_level = -1,
|
|
|
|
pipe_connections= {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
production_type = "input",
|
2019-10-03 18:31:43 +00:00
|
|
|
pipe_picture = assembler3pipepictures(),
|
2019-10-03 10:06:47 +00:00
|
|
|
pipe_covers = pipecoverspictures(),
|
|
|
|
base_area = 10,
|
|
|
|
base_level = -1,
|
|
|
|
pipe_connections = {{ type="input", position = {0, -2} }}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
production_type = "output",
|
|
|
|
pipe_picture = assembler3pipepictures(),
|
|
|
|
pipe_covers = pipecoverspictures(),
|
|
|
|
base_area = 10,
|
|
|
|
base_level = 1,
|
|
|
|
pipe_connections = { { type = "output", position = { 0, 2 } } },
|
|
|
|
secondary_draw_orders = { north = -1 }
|
|
|
|
},
|
|
|
|
off_when_no_fluid_recipe = true
|
|
|
|
},
|
2019-10-03 18:31:43 +00:00
|
|
|
crafting_categories = { "air-filtering-advanced" },
|
|
|
|
crafting_speed = 1.25,
|
2019-10-03 10:06:47 +00:00
|
|
|
energy_source =
|
|
|
|
{
|
|
|
|
type = "electric",
|
|
|
|
usage_priority = "secondary-input",
|
2019-10-04 17:20:34 +00:00
|
|
|
drain="200kW",
|
2019-10-03 10:06:47 +00:00
|
|
|
},
|
2019-10-05 20:08:15 +00:00
|
|
|
energy_usage = "100kW",
|
2019-10-06 21:04:22 +00:00
|
|
|
ingredient_count = 2,
|
2019-10-03 10:06:47 +00:00
|
|
|
module_slots = 0,
|
2019-10-05 20:08:15 +00:00
|
|
|
allowed_effects=nil
|
2019-10-03 10:06:47 +00:00
|
|
|
}
|
2019-10-03 08:43:43 +00:00
|
|
|
})
|