first part of overhaul towards 1.0
This commit is contained in:
parent
cc3bbdd1bf
commit
8459cd9a34
111 changed files with 3689 additions and 335 deletions
169
prototypes/fusion/fu_laser.lua
Normal file
169
prototypes/fusion/fu_laser.lua
Normal file
|
@ -0,0 +1,169 @@
|
|||
--local functions
|
||||
local function config(name)
|
||||
return settings.startup['fu_laser_'..name].value
|
||||
end
|
||||
|
||||
local function sprite(name)
|
||||
return '__248k__/ressources/fusion/fu_laser/fu_laser_'..name
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
name = 'fu_laser_item',
|
||||
type = 'item',
|
||||
icon = sprite('icon.png'),
|
||||
icon_size = 64,
|
||||
place_result = 'fu_laser_entity',
|
||||
stack_size = 20,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'a-b',
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
--entity
|
||||
data:extend({
|
||||
--prototype
|
||||
{
|
||||
name = 'fu_laser_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 = 'fu_laser_item',
|
||||
},
|
||||
crafting_categories = {'fu_laser_category'},
|
||||
crafting_speed = 1,
|
||||
ingredient_count = 2,
|
||||
--fixed_recipe = 'el_water_pressure_recipe',
|
||||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'secondary-input',
|
||||
},
|
||||
energy_usage = '60MW',
|
||||
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 = "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.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
|
173
prototypes/fusion/fu_magnet.lua
Normal file
173
prototypes/fusion/fu_magnet.lua
Normal file
|
@ -0,0 +1,173 @@
|
|||
--local functions
|
||||
local function config(name)
|
||||
return settings.startup['fu_magnet_'..name].value
|
||||
end
|
||||
|
||||
local function sprite(name)
|
||||
return '__248k__/ressources/fusion/fu_magnet/fu_magnet_'..name
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
name = 'fu_magnet_item',
|
||||
type = 'item',
|
||||
icon = sprite('icon.png'),
|
||||
icon_size = 64,
|
||||
place_result = 'fu_magnet_entity',
|
||||
stack_size = 20,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'a-b',
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
--entity
|
||||
data:extend({
|
||||
--prototype
|
||||
{
|
||||
name = 'fu_magnet_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 = 'fu_magnet_item',
|
||||
},
|
||||
crafting_categories = {'fu_magnet_category'},
|
||||
crafting_speed = 1,
|
||||
ingredient_count = 2,
|
||||
--fixed_recipe = 'el_water_pressure_recipe',
|
||||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'secondary-input',
|
||||
},
|
||||
energy_usage = '20MW',
|
||||
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 = "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,
|
||||
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
|
111
prototypes/fusion/fu_materials.lua
Normal file
111
prototypes/fusion/fu_materials.lua
Normal file
|
@ -0,0 +1,111 @@
|
|||
--local functions
|
||||
local function config(name)
|
||||
return settings.startup['fu_materials_'..name].value
|
||||
end
|
||||
|
||||
local function sprite(name)
|
||||
return '__248k__/ressources/fusion/fu_materials/fu_materials_'..name
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
name = 'fu_materials_energy_crystal',
|
||||
type = 'item',
|
||||
icon = sprite('energy_crystal.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_a',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_refined_crystal',
|
||||
type = 'item',
|
||||
icon = sprite('refined_crystal.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_a',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_pure_lead',
|
||||
type = 'item',
|
||||
icon = sprite('pure_lead.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_a',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_KFK',
|
||||
type = 'item',
|
||||
icon = sprite('KFK.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_b',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_TIM',
|
||||
type = 'item',
|
||||
icon = sprite('TIM.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_b',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_magnet',
|
||||
type = 'item',
|
||||
icon = sprite('magnet.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_b',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_carbon_fiber',
|
||||
type = 'item',
|
||||
icon = sprite('carbon_fiber.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_b',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_plasma_card',
|
||||
type = 'item',
|
||||
icon = sprite('plasma_card.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'c-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_laser_card',
|
||||
type = 'item',
|
||||
icon = sprite('laser_card.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'c-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_magnet_card',
|
||||
type = 'item',
|
||||
icon = sprite('magnet_card.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'c-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_materials_fusion_card',
|
||||
type = 'item',
|
||||
icon = sprite('fusion_card.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'c-a',
|
||||
},
|
||||
})
|
173
prototypes/fusion/fu_plasma.lua
Normal file
173
prototypes/fusion/fu_plasma.lua
Normal file
|
@ -0,0 +1,173 @@
|
|||
--local functions
|
||||
local function config(name)
|
||||
return settings.startup['fu_plasma_'..name].value
|
||||
end
|
||||
|
||||
local function sprite(name)
|
||||
return '__248k__/ressources/fusion/fu_plasma/fu_plasma_'..name
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
name = 'fu_plasma_item',
|
||||
type = 'item',
|
||||
icon = sprite('icon.png'),
|
||||
icon_size = 64,
|
||||
place_result = 'fu_plasma_entity',
|
||||
stack_size = 20,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'a-b',
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
--entity
|
||||
data:extend({
|
||||
--prototype
|
||||
{
|
||||
name = 'fu_plasma_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 = 'fu_plasma_item',
|
||||
},
|
||||
crafting_categories = {'fu_plasma_category'},
|
||||
crafting_speed = 1,
|
||||
ingredient_count = 2,
|
||||
--fixed_recipe = 'el_water_pressure_recipe',
|
||||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'secondary-input',
|
||||
},
|
||||
energy_usage = '60MW',
|
||||
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 = "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 = 2,
|
||||
lines_per_file = 2,
|
||||
frame_count = 4,
|
||||
animation_speed = 0.2,
|
||||
shift = {0,-0.1}
|
||||
},
|
||||
east = {
|
||||
filename = sprite('entity_animation.png'),
|
||||
size = {512,512},
|
||||
scale = 0.54,
|
||||
line_length = 2,
|
||||
lines_per_file = 2,
|
||||
frame_count = 4,
|
||||
animation_speed = 0.2,
|
||||
shift = {0,-0.1}
|
||||
},
|
||||
south = {
|
||||
filename = sprite('entity_animation.png'),
|
||||
size = {512,512},
|
||||
scale = 0.54,
|
||||
line_length = 2,
|
||||
lines_per_file = 2,
|
||||
frame_count = 4,
|
||||
animation_speed = 0.2,
|
||||
shift = {0,-0.1}
|
||||
},
|
||||
west = {
|
||||
filename = sprite('entity_animation.png'),
|
||||
size = {512,512},
|
||||
scale = 0.54,
|
||||
line_length = 2,
|
||||
lines_per_file = 2,
|
||||
frame_count = 4,
|
||||
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
|
|
@ -228,7 +228,7 @@ data:extend({
|
|||
--animation
|
||||
animation = {
|
||||
north = {
|
||||
filename = sprite('tokamak_entity_animation_vertikal.png'),
|
||||
filename = sprite('tokamak_entity_animation.png'),
|
||||
size = {512*3,512*2},
|
||||
scale = 0.37,
|
||||
line_length = 3,
|
||||
|
@ -238,7 +238,7 @@ data:extend({
|
|||
shift = {2.34,0.3},
|
||||
},
|
||||
east = {
|
||||
filename = sprite('tokamak_entity_animation_horizontal.png'),
|
||||
filename = sprite('tokamak_entity_animation.png'),
|
||||
size = {512*3,512*2},
|
||||
scale = 0.37,
|
||||
line_length = 3,
|
||||
|
@ -248,7 +248,7 @@ data:extend({
|
|||
shift = {2.34,0.3},
|
||||
},
|
||||
south = {
|
||||
filename = sprite('tokamak_entity_animation_vertikal.png'),
|
||||
filename = sprite('tokamak_entity_animation.png'),
|
||||
size = {512*3,512*2},
|
||||
scale = 0.37,
|
||||
line_length = 3,
|
||||
|
@ -258,7 +258,7 @@ data:extend({
|
|||
shift = {2.34,0.3},
|
||||
},
|
||||
west = {
|
||||
filename = sprite('tokamak_entity_animation_horizontal.png'),
|
||||
filename = sprite('tokamak_entity_animation.png'),
|
||||
size = {512*3,512*2},
|
||||
scale = 0.37,
|
||||
line_length = 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue