first part of overhaul towards 1.0

This commit is contained in:
Paul 2021-08-30 01:12:28 +02:00
parent cc3bbdd1bf
commit 8459cd9a34
111 changed files with 3689 additions and 335 deletions

View file

@ -0,0 +1,177 @@
--local functions
local function config(name)
return settings.startup['el_arc_furnace_'..name].value
end
local function sprite(name)
return '__248k__/ressources/electronic/el_arc_furnace/el_arc_furnace_'..name
end
--item
data:extend({
{
name = 'el_arc_furnace_item',
type = 'item',
icon = sprite('icon.png'),
icon_size = 64,
place_result = 'el_arc_furnace_entity',
stack_size = 20,
subgroup = 'el_item_subgroup_c',
order = 'a-b',
},
})
--entity
data:extend({
--prototype
{
name = 'el_arc_furnace_entity',
type = 'assembling-machine',
icon = sprite('icon.png'),
icon_size = 64,
flags = {"player-creation","placeable-neutral"},
max_health = 300,
corpse = 'big-remnants',
collision_box = {{-3.4,-3.4},{3.4,3.4}},
selection_box = {{-3.5,-3.5},{3.5,3.5}},
map_color = {r=0, g=0, b=1, a=1},
minable = {
mining_time = 1,
result = 'el_arc_furnace_item',
},
crafting_categories = {'el_arc_furnace_category'},
crafting_speed = 1,
--fixed_recipe = 'el_water_pressure_recipe',
energy_source = {
type = 'electric',
usage_priority = 'secondary-input',
},
allowed_effects = {"speed", "consumption", "pollution"},
module_specification = {
module_info_icon_shift = {
0,
0.8
},
module_slots = 2
},
energy_usage = '400kW',
fluid_boxes = {
{
base_area = 1,
height = 2,
base_level = 1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "output", position = {0, -4}},
},
production_type = "output"
},
{
base_area = 1,
height = 2,
base_level = 1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "output", position = {-4, 0}}
},
production_type = "output"
},
{
base_area = 1,
height = 2,
base_level = 1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "output", position = {4, 0}},
--{type = "output", position = {2, -2.5}}
},
production_type = "output"
},
{
base_area = 1,
height = 2,
base_level = 1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "output", position = {0, 4}},
},
production_type = "output"
},
},
--animation
animation = {
north = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
frame_count = 3,
animation_speed = 0.5,
shift = {0,-0.1}
},
east = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
--lines_per_file = 3,
frame_count = 3,
animation_speed = 0.5,
shift = {0,-0.1}
},
south = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
frame_count = 3,
animation_speed = 0.5,
shift = {0,-0.1}
},
west = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
frame_count = 3,
animation_speed = 0.5,
shift = {0,-0.1}
},
},
working_sound =
{
sound = {filename = "__base__/sound/chemical-plant-3.ogg" },
apparent_volume = 0.3,
},
},
})
--{
-- production_type = "input",
--pipe_picture = assembler2pipepictures(),
--pipe_covers = pipecoverspictures(),
-- base_area = 10,
-- base_level = -1,
-- pipe_connections = {
-- { type="input", position = {-2, -2,5} },
-- { type="input", position = {2, -2.5} },
-- },
-- },
-- {
-- production_type = "output",
--pipe_picture = assembler2pipepictures(),
--pipe_covers = pipecoverspictures(),
-- base_area = 10,
-- base_level = 1,
-- pipe_connections = {{ type="output", position = {2, 2.5} }},
-- },
-- off_when_no_fluid_recipe = true

View file

@ -0,0 +1,181 @@
--local functions
local function config(name)
return settings.startup['el_caster_'..name].value
end
local function sprite(name)
return '__248k__/ressources/electronic/el_caster/el_caster_'..name
end
--item
data:extend({
{
name = 'el_caster_item',
type = 'item',
icon = sprite('icon.png'),
icon_size = 64,
place_result = 'el_caster_entity',
stack_size = 20,
subgroup = 'el_item_subgroup_c',
order = 'a-b',
},
})
--entity
data:extend({
--prototype
{
name = 'el_caster_entity',
type = 'assembling-machine',
icon = sprite('icon.png'),
icon_size = 64,
flags = {"player-creation","placeable-neutral"},
max_health = 300,
corpse = 'big-remnants',
collision_box = {{-3.4,-3.4},{3.4,3.4}},
selection_box = {{-3.5,-3.5},{3.5,3.5}},
map_color = {r=0, g=0, b=1, a=1},
minable = {
mining_time = 1,
result = 'el_caster_item',
},
crafting_categories = {'el_caster_category'},
crafting_speed = 1,
ingredient_count = 2,
--fixed_recipe = 'el_water_pressure_recipe',
energy_source = {
type = 'electric',
usage_priority = 'secondary-input',
},
allowed_effects = {"speed", "consumption", "pollution"},
module_specification = {
module_info_icon_shift = {
0,
0.8
},
module_slots = 2
},
energy_usage = '100kW',
fluid_boxes = {
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {0, -4}},
},
production_type = "input"
},
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {-4, 0}}
},
production_type = "input"
},
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {4, 0}},
--{type = "output", position = {2, -2.5}}
},
production_type = "input"
},
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {0, 4}},
},
production_type = "input"
},
},
--animation
animation = {
north = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
lines_per_file = 3,
frame_count = 9,
animation_speed = 0.2,
shift = {0,-0.1}
},
east = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
lines_per_file = 3,
frame_count = 9,
animation_speed = 0.2,
shift = {0,-0.1}
},
south = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
lines_per_file = 3,
frame_count = 9,
animation_speed = 0.2,
shift = {0,-0.1}
},
west = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
lines_per_file = 3,
frame_count = 9,
animation_speed = 0.2,
shift = {0,-0.1}
},
},
working_sound =
{
sound = {filename = "__base__/sound/chemical-plant-3.ogg" },
apparent_volume = 0.3,
},
},
})
--{
-- production_type = "input",
--pipe_picture = assembler2pipepictures(),
--pipe_covers = pipecoverspictures(),
-- base_area = 10,
-- base_level = -1,
-- pipe_connections = {
-- { type="input", position = {-2, -2,5} },
-- { type="input", position = {2, -2.5} },
-- },
-- },
-- {
-- production_type = "output",
--pipe_picture = assembler2pipepictures(),
--pipe_covers = pipecoverspictures(),
-- base_area = 10,
-- base_level = 1,
-- pipe_connections = {{ type="output", position = {2, 2.5} }},
-- },
-- off_when_no_fluid_recipe = true

View file

@ -0,0 +1,152 @@
--local functions
local function config(name)
return settings.startup['el_grower_'..name].value
end
local function sprite(name)
return '__248k__/ressources/electronic/el_grower/el_grower_'..name
end
--item
data:extend({
{
name = 'el_grower_item',
type = 'item',
icon = sprite('icon.png'),
icon_size = 64,
place_result = 'el_grower_entity',
stack_size = 20,
subgroup = 'el_item_subgroup_c',
order = 'a-b',
},
})
--entity
data:extend({
--prototype
{
name = 'el_grower_entity',
type = 'assembling-machine',
icon = sprite('icon.png'),
icon_size = 64,
flags = {"player-creation","placeable-neutral"},
max_health = 300,
corpse = 'big-remnants',
collision_box = {{-2.4,-2.4},{2.4,2.4}},
selection_box = {{-2.5,-2.5},{2.5,2.5}},
map_color = {r=0, g=0, b=1, a=1},
minable = {
mining_time = 1,
result = 'el_grower_item',
},
crafting_categories = {'el_grower_category'},
crafting_speed = 1,
ingredient_count = 3,
--fixed_recipe = 'el_water_pressure_recipe',
energy_source = {
type = 'electric',
usage_priority = 'secondary-input',
},
allowed_effects = {"speed", "productivity", "consumption", "pollution"},
module_specification = {
module_info_icon_shift = {
0,
0.8
},
module_slots = 2
},
energy_usage = '200kW',
fluid_boxes = {
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {0, -3}},
},
production_type = "input"
},
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {-3, 0}}
},
production_type = "input"
},
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {3, 0}},
--{type = "output", position = {2, -2.5}}
},
production_type = "input"
},
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {0, 3}},
},
production_type = "input"
},
},
--animation
animation = {
north = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.32,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0, -0.2}
},
east = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.32,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0, -0.2}
},
south = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.32,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0, -0.2}
},
west = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.32,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0, -0.2}
},
},
working_sound =
{
sound = {filename = "__base__/sound/chemical-plant-3.ogg" },
apparent_volume = 0.3,
},
},
})

View file

@ -0,0 +1,57 @@
--local functions
local function config(name)
return settings.startup['el_materials_'..name].value
end
local function sprite(name)
return '__248k__/ressources/electronic/el_materials/el_materials_'..name
end
--item
data:extend({
{
name = 'el_materials_pure_iron',
type = 'item',
icon = sprite('pure_iron.png'),
icon_size = 64,
stack_size = 50,
subgroup = 'el_item_subgroup_a',
order = 'a-a',
},
{
name = 'el_materials_pure_copper',
type = 'item',
icon = sprite('pure_copper.png'),
icon_size = 64,
stack_size = 50,
subgroup = 'el_item_subgroup_a',
order = 'a-b',
},
{
name = 'el_materials_pure_aluminum',
type = 'item',
icon = sprite('pure_aluminum.png'),
icon_size = 64,
stack_size = 50,
subgroup = 'el_item_subgroup_a',
order = 'a-c',
},
{
name = 'el_materials_ceramic',
type = 'item',
icon = sprite('ceramic.png'),
icon_size = 64,
stack_size = 50,
subgroup = 'el_item_subgroup_a',
order = 'a-c',
},
{
name = 'el_materials_ALK',
type = 'item',
icon = sprite('ALK.png'),
icon_size = 64,
stack_size = 100,
subgroup = 'el_item_subgroup_a',
order = 'a-c',
},
})

View file

@ -0,0 +1,177 @@
--local functions
local function config(name)
return settings.startup['el_purifier_'..name].value
end
local function sprite(name)
return '__248k__/ressources/electronic/el_purifier/el_purifier_'..name
end
--item
data:extend({
{
name = 'el_purifier_item',
type = 'item',
icon = sprite('icon.png'),
icon_size = 64,
place_result = 'el_purifier_entity',
stack_size = 20,
subgroup = 'el_item_subgroup_c',
order = 'a-b',
},
})
--entity
data:extend({
--prototype
{
name = 'el_purifier_entity',
type = 'assembling-machine',
icon = sprite('icon.png'),
icon_size = 64,
flags = {"player-creation","placeable-neutral"},
max_health = 300,
corpse = 'big-remnants',
collision_box = {{-3.4,-3.4},{3.4,3.4}},
selection_box = {{-3.5,-3.5},{3.5,3.5}},
map_color = {r=0, g=0, b=1, a=1},
minable = {
mining_time = 1,
result = 'el_purifier_item',
},
crafting_categories = {'el_purifier_category'},
crafting_speed = 1,
ingredient_count = 2,
--fixed_recipe = 'el_water_pressure_recipe',
energy_source = {
type = 'electric',
usage_priority = 'secondary-input',
},
allowed_effects = {"speed", "consumption", "pollution"},
module_specification = {
module_info_icon_shift = {
0,
0.8
},
module_slots = 2
},
energy_usage = '40kW',
fluid_boxes = {
{
filter = 'water',
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {0, -4}},
},
production_type = "input"
},
{
filter = 'water',
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "input", position = {-4, 0}}
},
production_type = "input"
},
{
filter = 'el_dirty_water',
base_area = 1,
height = 2,
base_level = 1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "output", position = {4, 0}},
--{type = "output", position = {2, -2.5}}
},
production_type = "output"
},
{
filter = 'el_dirty_water',
base_area = 1,
height = 2,
base_level = 1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{type = "output", position = {0, 4}},
},
production_type = "output"
},
},
--animation
animation = {
north = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0,-0.1}
},
east = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0,-0.1}
},
south = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0,-0.1}
},
west = {
filename = sprite('entity_animation.png'),
size = {512,512},
scale = 0.54,
line_length = 3,
frame_count = 3,
animation_speed = 0.2,
shift = {0,-0.1}
},
},
working_sound =
{
sound = {filename = "__base__/sound/chemical-plant-3.ogg" },
apparent_volume = 0.3,
},
},
})
--{
-- production_type = "input",
--pipe_picture = assembler2pipepictures(),
--pipe_covers = pipecoverspictures(),
-- base_area = 10,
-- base_level = -1,
-- pipe_connections = {
-- { type="input", position = {-2, -2,5} },
-- { type="input", position = {2, -2.5} },
-- },
-- },
-- {
-- production_type = "output",
--pipe_picture = assembler2pipepictures(),
--pipe_covers = pipecoverspictures(),
-- base_area = 10,
-- base_level = 1,
-- pipe_connections = {{ type="output", position = {2, 2.5} }},
-- },
-- off_when_no_fluid_recipe = true