recipe ideas

This commit is contained in:
Joey De Pauw 2019-10-03 12:06:47 +02:00
parent ce06290dd8
commit 39aa240629
7 changed files with 349 additions and 275 deletions

View File

@ -1,4 +1,5 @@
require("prototypes.entity")
require("prototypes.item")
require("prototypes.fluid")
require("prototypes.recipe")
require("prototypes.technology")

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -8,13 +8,14 @@ data:extend({
name = "air-filter-machine",
icon = "__better-air-filtering__/graphics/icons/air-filter-machine.png",
icon_size = 32,
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "air-filter-machine"},
flags = { "placeable-neutral", "placeable-player", "player-creation" },
minable = { hardness = 0.2, mining_time = 0.5, result = "air-filter-machine" },
fast_replaceable_group = "air-filter-machine",
max_health = 150,
corpse = "big-remnants",
collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
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 =
{
filename = "__better-air-filtering__/graphics/entity/air-filter-machine.png",
@ -23,7 +24,7 @@ data:extend({
height = 102,
frame_count = 32,
line_length = 8,
shift = {0.4, -0.06}
shift = { 0.4, -0.06 }
},
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
@ -33,7 +34,20 @@ data:extend({
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
apparent_volume = 1.5,
},
crafting_categories = {"crafting-air-filter"},
fluid_boxes =
{
{
production_type = "input",
pipe_picture = assembler3pipepictures(),
pipe_covers = pipecoverspictures(),
base_area = 10,
base_level = -1,
pipe_connections = { { type = "input", position = { 0, -2 } } },
secondary_draw_orders = { north = -1 }
},
off_when_no_fluid_recipe = true
},
crafting_categories = { "crafting-air-filter" },
crafting_speed = 1.0,
energy_source =
{
@ -41,70 +55,28 @@ data:extend({
fuel_category = "pollution-filter",
usage_priority = "secondary-input",
fuel_inventory_size = 1,
-- burnt_inventory_size = 1,
burnt_inventory_size = 1,
emissions = -0.06
},
energy_usage = "1MW",
fixed_recipe="filter-air2",
fixed_recipe = "filter-air",
ingredient_count = 1,
module_slots = 0
module_slots = 0,
allowed_effects=nill
},
-- {
-- type = "furnace",
-- name = "air-filter-machine",
-- icon = "__better-air-filtering__/graphics/icons/air-filter-machine.png",
-- icon_size = 32,
-- flags = {"placeable-neutral", "placeable-player", "player-creation"},
-- minable = {hardness = 0.2, mining_time = 0.5, result = "air-filter-machine"},
-- fast_replaceable_group = "air-filter-machine",
-- max_health = 150,
-- corpse = "big-remnants",
-- collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
-- selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
-- animation =
-- {
-- filename = "__better-air-filtering__/graphics/entity/air-filter-machine.png",
-- priority = "high",
-- width = 99,
-- height = 102,
-- frame_count = 32,
-- line_length = 8,
-- shift = {0.4, -0.06}
-- },
-- 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,
-- },
-- crafting_categories = {"crafting-air-filter"},
-- source_inventory_size = 1,
-- result_inventory_size = 1,
-- crafting_speed = 1.0,
-- energy_source =
-- {
-- type = "electric",
-- usage_priority = "secondary-input",
-- emissions = -0.06
-- },
-- energy_usage = "200kW",
-- ingredient_count = 1,
-- module_slots = 0
-- },
{
type = "furnace",
type = "assembling-machine",
name = "air-filter-machine-mk2",
icon = "__better-air-filtering__/graphics/icons/air-filter-machine-mk2.png",
icon_size = 32,
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "air-filter-machine-mk2"},
flags = { "placeable-neutral", "placeable-player", "player-creation" },
minable = { hardness = 0.2, mining_time = 0.5, result = "air-filter-machine" },
fast_replaceable_group = "air-filter-machine",
max_health = 150,
corpse = "big-remnants",
collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
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 =
{
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-mk2.png",
@ -113,7 +85,7 @@ data:extend({
height = 102,
frame_count = 32,
line_length = 8,
shift = {0.4, -0.06}
shift = { 0.4, -0.06 }
},
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
@ -123,32 +95,45 @@ data:extend({
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
apparent_volume = 1.5,
},
crafting_categories = {"crafting-air-filter"},
source_inventory_size = 1,
result_inventory_size = 1,
crafting_speed = 2.0,
fluid_boxes =
{
{
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
},
crafting_categories = { "suck-air" },
crafting_speed = 1.0,
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
emissions = -0.12
emissions = -0.06
},
energy_usage = "350kW",
energy_usage = "1MW",
fixed_recipe = "suck-pollution",
ingredient_count = 1,
module_slots = 0
module_slots = 0,
allowed_effects=nill
},
{
type = "furnace",
type = "assembling-machine",
name = "air-filter-machine-mk3",
icon = "__better-air-filtering__/graphics/icons/air-filter-machine-mk3.png",
icon_size = 32,
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "air-filter-machine-mk3"},
flags = { "placeable-neutral", "placeable-player", "player-creation" },
minable = { hardness = 0.2, mining_time = 0.5, result = "air-filter-machine-mk3" },
fast_replaceable_group = "air-filter-machine",
max_health = 150,
corpse = "big-remnants",
collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
corpse = "medium-remnants",
collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } },
animation =
{
filename = "__better-air-filtering__/graphics/entity/air-filter-machine-mk3.png",
@ -157,7 +142,7 @@ data:extend({
height = 102,
frame_count = 32,
line_length = 8,
shift = {0.4, -0.06}
shift = { 0.4, -0.06 }
},
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
@ -167,9 +152,34 @@ data:extend({
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
apparent_volume = 1.5,
},
crafting_categories = {"crafting-air-filter"},
source_inventory_size = 1,
result_inventory_size = 1,
fluid_boxes =
{
{
production_type = "input",
pipe_covers = pipecoverspictures(),
base_area = 10,
base_level = -1,
pipe_connections= {}
},
{
production_type = "input",
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
},
crafting_categories = { "suck-air" },
crafting_speed = 5.0,
energy_source =
{
@ -179,6 +189,7 @@ data:extend({
},
energy_usage = "1MW",
ingredient_count = 1,
module_slots = 0
module_slots = 0,
allowed_effects=nill
}
})

View File

@ -0,0 +1,27 @@
data:extend({
{
type = "fluid",
name = "pollution",
default_temperature = 5,
max_temperature = 15,
base_color = {r=0.38, g=0.27, b=0.53}, -- 97, 69, 135
flow_color = {r=0.7, g=0.7, b=0.7},
icon = "__better-air-filtering__/graphics/icons/fluid/pollution.png",
icon_size = 32,
order = "a[fluid]-z[water]",
auto_barrel="false"
},
{
type = "fluid",
name = "pollution-gas",
default_temperature = 15,
max_temperature = 100,
gas_temperature = 15,
base_color = {r=0.38, g=0.27, b=0.53}, -- 97, 69, 135
flow_color = {r=0.7, g=0.7, b=0.7},
icon = "__base__/graphics/icons/fluid/pollution.png",
icon_size = 32,
order = "a[fluid]-z[water]",
auto_barrel="false"
}
})

View File

@ -42,7 +42,7 @@ data:extend({
order = "g[plastic-bar]-h[unused-air-filter]",
stack_size = 50,
fuel_category = "pollution-filter",
-- burnt_result = "used-air-filter",
burnt_result = "used-air-filter",
fuel_value = "300MW",
},
{

View File

@ -3,6 +3,10 @@ data:extend({
type = "recipe-category",
name = "crafting-air-filter"
},
{
type = "recipe-category",
name = "suck-air"
},
{
type = "recipe",
name = "air-filter-machine",
@ -12,9 +16,9 @@ data:extend({
enabled = "false",
ingredients =
{
{"assembling-machine-2", 1},
{"electronic-circuit", 5},
{"steel-plate", 10}
{ "assembling-machine-2", 1 },
{ "electronic-circuit", 5 },
{ "steel-plate", 10 }
},
result = "air-filter-machine"
},
@ -27,8 +31,8 @@ data:extend({
enabled = "false",
ingredients =
{
{"air-filter-machine", 2},
{"advanced-circuit", 10}
{ "air-filter-machine", 2 },
{ "advanced-circuit", 10 }
},
result = "air-filter-machine-mk2"
},
@ -41,8 +45,8 @@ data:extend({
enabled = "false",
ingredients =
{
{"air-filter-machine-mk2", 2},
{"processing-unit", 10}
{ "air-filter-machine-mk2", 2 },
{ "processing-unit", 10 }
},
result = "air-filter-machine-mk3"
},
@ -58,9 +62,9 @@ data:extend({
enabled = "false",
ingredients =
{
{"coal", 10},
{"plastic-bar", 4},
{"steel-plate", 2}
{ "coal", 10 },
{ "plastic-bar", 4 },
{ "steel-plate", 2 }
},
result = "unused-air-filter"
},
@ -70,31 +74,62 @@ data:extend({
icon = "__better-air-filtering__/graphics/icons/filter-air.png",
icon_size = 32,
category = "crafting-air-filter",
order = "f[plastic-bar]-f[filter-air]",
energy_required = 100,
enabled = "false",
ingredients =
{
{"unused-air-filter", 1}
},
result = "used-air-filter"
},
{
type = "recipe",
name = "filter-air2",
icon = "__better-air-filtering__/graphics/icons/filter-air.png",
icon_size = 32,
category = "crafting-air-filter",
subgroup = "raw-material",
order = "f[plastic-bar]-f[filter-air]",
energy_required = 5,
energy_required = 0.5,
enabled = "true",
ingredients =
{
{type="fluid", name="pollution-gas", amount=2}
},
result = "used-air-filter"
results = {}
},
{
type = "recipe",
name = "suck-pollution",
category = "suck-air",
subgroup = "raw-material",
order = "f[plastic-bar]-f[filter-air]",
energy_required = 0.5,
enabled = "true",
ingredients =
{
},
results = {{type="fluid", name="pollution-gas", amount=4}}
},
{
type = "recipe",
name = "liquid-pollution",
-- icon = "__better-air-filtering__/graphics/icons/filter-air.png",
-- icon_size = 32,
category = "suck-air",
subgroup = "raw-material",
order = "f[plastic-bar]-f[filter-air]",
energy_required = 0.5,
enabled = "true",
ingredients =
{
{type="fluid", name="pollution-gas", amount=6, fluidbox_index=1},
{type="fluid", name="water", amount=10, fluidbox_index=2}
},
results = {{type="fluid", name="pollution", amount=10}}
},
-- {
-- type = "recipe",
-- name = "debug-pollution",
---- icon = "__base__/graphics/icons/pollution.png",
---- icon_size = 32,
-- category = "crafting-with-fluid",
-- subgroup = "raw-material",
-- order = "f[plastic-bar]-f[filter-air]",
-- energy_required = 1,
-- enabled = "true",
-- ingredients =
-- {
--
-- },
-- results = {{type="fluid", name="pollution-gas", amount=10}}
-- },
{
type = "recipe",
name = "air-filter-recycling",
@ -107,8 +142,8 @@ data:extend({
enabled = "false",
ingredients =
{
{"used-air-filter", 1},
{"coal", 5}
{ "used-air-filter", 1 },
{ "coal", 5 }
},
result = "unused-air-filter"
}