added charger, shifted energy crystal fuel value
This commit is contained in:
parent
d0278344ad
commit
ba5c01c233
20 changed files with 402 additions and 17 deletions
|
@ -71,8 +71,10 @@ data:extend({
|
|||
burner = {
|
||||
type = 'burner',
|
||||
fuel_inventory_size = 3,
|
||||
effectivity = 0.9,
|
||||
burnt_inventory_size = 3,
|
||||
effectivity = 0.95,
|
||||
emissions_per_minute = 20,
|
||||
fuel_categories = {"chemical", "charged_fuel"},
|
||||
smoke = {
|
||||
{
|
||||
name = 'smoke',
|
||||
|
|
172
prototypes/electronic/el_charger.lua
Normal file
172
prototypes/electronic/el_charger.lua
Normal file
|
@ -0,0 +1,172 @@
|
|||
--local functions
|
||||
local function config(name)
|
||||
return settings.startup['el_charger_'..name].value
|
||||
end
|
||||
|
||||
local function sprite(name)
|
||||
return '__248k__/ressources/electronic/el_charger/el_charger_'..name
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
name = 'el_charger_item',
|
||||
type = 'item',
|
||||
icon = sprite('icon.png'),
|
||||
icon_size = 64,
|
||||
place_result = 'el_charger_entity',
|
||||
stack_size = 20,
|
||||
subgroup = 'el_item_subgroup_c',
|
||||
order = 'a-b',
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
--entity
|
||||
data:extend({
|
||||
--prototype
|
||||
{
|
||||
name = 'el_charger_entity',
|
||||
type = 'furnace',
|
||||
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_charger_item',
|
||||
},
|
||||
crafting_categories = {'el_charger_category'},
|
||||
result_inventory_size = 1,
|
||||
source_inventory_size = 1,
|
||||
crafting_speed = 1,
|
||||
--fixed_recipe = 'el_water_pressure_recipe',
|
||||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'secondary-input',
|
||||
},
|
||||
energy_usage = '10MW',
|
||||
fluid_boxes = {
|
||||
{
|
||||
|
||||
base_area = 20,
|
||||
filter = 'water',
|
||||
height = 2,
|
||||
base_level = -1,
|
||||
pipe_covers = pipecoverspictures(),
|
||||
pipe_picture = grey_south_pipe_picture,
|
||||
pipe_connections =
|
||||
{
|
||||
{type = "input", position = {0, -4}},
|
||||
},
|
||||
production_type = "input"
|
||||
},
|
||||
{
|
||||
|
||||
base_area = 20,
|
||||
height = 2,
|
||||
filter = 'fu_oxygen',
|
||||
base_level = 1,
|
||||
pipe_covers = pipecoverspictures(),
|
||||
pipe_picture = grey_south_pipe_picture,
|
||||
pipe_connections =
|
||||
{
|
||||
{type = "output", position = {-4, 0}}
|
||||
},
|
||||
production_type = "output"
|
||||
},
|
||||
{
|
||||
|
||||
base_area = 20,
|
||||
height = 2,
|
||||
filter = 'fu_hydrogen',
|
||||
base_level = 1,
|
||||
pipe_covers = pipecoverspictures(),
|
||||
pipe_picture = grey_south_pipe_picture,
|
||||
pipe_connections =
|
||||
{
|
||||
{type = "output", position = {4, 0}},
|
||||
--{type = "output", position = {2, -2.5}}
|
||||
},
|
||||
production_type = "output"
|
||||
},
|
||||
{
|
||||
|
||||
base_area = 20,
|
||||
height = 2,
|
||||
filter = 'fu_hydrogen',
|
||||
base_level = 1,
|
||||
pipe_covers = pipecoverspictures(),
|
||||
pipe_picture = grey_south_pipe_picture,
|
||||
pipe_connections =
|
||||
{
|
||||
{type = "output", position = {0, 4}},
|
||||
},
|
||||
production_type = "output"
|
||||
},
|
||||
},
|
||||
--animation
|
||||
animation = {
|
||||
filename = sprite('entity_base.png'),
|
||||
size = {512,512},
|
||||
scale = 0.54,
|
||||
line_length = 1,
|
||||
--lines_per_file = 2,
|
||||
frame_count = 1,
|
||||
--animation_speed = 0.2,
|
||||
shift = {0,-0.3}
|
||||
},
|
||||
working_visualisations = {
|
||||
{
|
||||
animation =
|
||||
{
|
||||
filename = sprite('entity_overlay.png'),
|
||||
size = {512,512},
|
||||
scale = 0.54,
|
||||
line_length = 3,
|
||||
lines_per_file = 1,
|
||||
frame_count = 3,
|
||||
animation_speed = 0.2,
|
||||
shift = {0,-0.3}
|
||||
},
|
||||
light = {
|
||||
type = "basic",
|
||||
intensity = 1,
|
||||
size = 15,
|
||||
color = {r=0.12 ,g=0.5 ,b=0.85 },
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
working_sound =
|
||||
{
|
||||
sound = {filename = "__base__/sound/chemical-plant-3.ogg" },
|
||||
apparent_volume = 0.1,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
--{
|
||||
-- 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
|
|
@ -17,11 +17,21 @@ data:extend({
|
|||
stack_size = 500,
|
||||
subgroup = 'el_item_subgroup_a',
|
||||
order = 'a-c',
|
||||
},
|
||||
{
|
||||
name = 'el_energy_crystal_charged_item',
|
||||
type = 'item',
|
||||
icon = sprite('charged_item.png'),
|
||||
icon_size = 64,
|
||||
stack_size = 100,
|
||||
subgroup = 'el_item_subgroup_a',
|
||||
order = 'a-c',
|
||||
fuel_glow_color = {r=0.1,g=0.74,b=0.39,a=0.5},
|
||||
fuel_category = 'chemical',
|
||||
fuel_category = 'charged_fuel',
|
||||
fuel_acceleration_multiplier = 1,
|
||||
fuel_emissions_multiplier = 1,
|
||||
fuel_top_speed_multiplier = 1,
|
||||
fuel_value = '20MJ',
|
||||
burnt_result = 'el_energy_crystal_item',
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue