big turbine
This commit is contained in:
parent
5c5e90af57
commit
d20c0de598
12 changed files with 191 additions and 0 deletions
|
@ -400,4 +400,19 @@ data:extend({
|
|||
subgroup = 'fu_item_subgroup_f',
|
||||
order = 'a-a',
|
||||
},
|
||||
{
|
||||
name = 'fu_hot_steam',
|
||||
type = 'fluid',
|
||||
icon = sprite('fu_hot_steam.png'),
|
||||
icon_size = 64,
|
||||
default_temperature = 500,
|
||||
max_temperature = 1500,
|
||||
heat_capacity = '2010J',
|
||||
base_color = { r=0.7, g=0.7, b=0.7 },
|
||||
flow_color = { r=0.7, g=0.7, b=0.7 },
|
||||
pressure_to_speed_ratio = 0.400,
|
||||
flow_to_energy_ratio = 0,
|
||||
subgroup = 'fu_item_subgroup_f',
|
||||
order = 'a-a',
|
||||
},
|
||||
})
|
|
@ -2286,6 +2286,37 @@ data:extend({
|
|||
time = 45,
|
||||
},
|
||||
},
|
||||
{
|
||||
name = 'fu_turbine_tech',
|
||||
type = 'technology',
|
||||
icon = sprite('fu_turbine_tech.png'),
|
||||
icon_size = 128,
|
||||
prerequisites = {'fu_energy_tech'},
|
||||
effects = {
|
||||
{
|
||||
type = 'unlock-recipe',
|
||||
recipe = 'fu_turbine_recipe',
|
||||
},
|
||||
--{
|
||||
-- type = 'unlock-recipe',
|
||||
-- recipe = 'fu_stelerator_1_recipe',
|
||||
--},
|
||||
{
|
||||
type = 'unlock-recipe',
|
||||
recipe = 'fu_exchanger_4_recipe',
|
||||
},
|
||||
},
|
||||
unit = {
|
||||
count = '400',
|
||||
ingredients = {
|
||||
{'chemical-science-pack',1},
|
||||
{'automation-science-pack',1},
|
||||
{'logistic-science-pack',1},
|
||||
{'utility-science-pack',1}
|
||||
},
|
||||
time = 45,
|
||||
},
|
||||
},
|
||||
--robo
|
||||
{
|
||||
name = 'fu_robo_tech',
|
||||
|
|
|
@ -515,6 +515,42 @@ data:extend({
|
|||
order = 'b-a',
|
||||
always_show_made_in = true,
|
||||
},
|
||||
{
|
||||
name = 'fu_turbine_recipe',
|
||||
type = 'recipe',
|
||||
enabled = 'false',
|
||||
ingredients = {
|
||||
{type="item", name="steam-turbine", amount=5},
|
||||
{type="item", name="fu_materials_KFK", amount=40},
|
||||
{type="item", name="fu_materials_TIM", amount=40},
|
||||
{type="item", name="concrete", amount=60},
|
||||
},
|
||||
results = {
|
||||
{type="item", name="fu_turbine_item", amount=1},
|
||||
},
|
||||
result_count = 1,
|
||||
energy_required = 10,
|
||||
},
|
||||
{
|
||||
name = 'fu_exchanger_4_recipe',
|
||||
type = 'recipe',
|
||||
category = 'fu_exchanger_crafting_category',
|
||||
main_product = 'fu_hot_steam',
|
||||
enabled = 'false',
|
||||
ingredients = {
|
||||
{type="fluid", name="fu_lead_fluid_hot", amount=100},
|
||||
{type="fluid", name="water", amount=100},
|
||||
},
|
||||
results = {
|
||||
{type="fluid", name="fu_lead_fluid_cold", amount=100},
|
||||
{type="fluid", name="fu_hot_steam", amount=100, temperature=1500},
|
||||
},
|
||||
result_count = 1,
|
||||
energy_required = 1,
|
||||
subgroup = 'fu_item_subgroup_e',
|
||||
order = 'b-a',
|
||||
always_show_made_in = true,
|
||||
},
|
||||
--fu_robo
|
||||
{
|
||||
name = 'fu_robo_logistic_recipe',
|
||||
|
|
104
prototypes/fusion/fu_turbine.lua
Normal file
104
prototypes/fusion/fu_turbine.lua
Normal file
|
@ -0,0 +1,104 @@
|
|||
--local functions
|
||||
local function config(name)
|
||||
return settings.startup['fu_turbine_'..name].value
|
||||
end
|
||||
|
||||
local function sprite(name)
|
||||
return '__248k__/ressources/fusion/fu_turbine/fu_turbine_'..name
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
name = 'fu_turbine_item',
|
||||
type = 'item',
|
||||
icon = sprite('icon.png'),
|
||||
icon_size = 64,
|
||||
place_result = 'fu_turbine_entity',
|
||||
stack_size = 20,
|
||||
subgroup = 'fu_item_subgroup_c',
|
||||
order = 'a-b',
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
--entity
|
||||
data:extend({
|
||||
--prototype
|
||||
{
|
||||
name = 'fu_turbine_entity',
|
||||
type = 'generator',
|
||||
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_turbine_item',
|
||||
},
|
||||
effectivity = 1,
|
||||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'primary-output',
|
||||
},
|
||||
fluid_usage_per_tick = 10/6,
|
||||
maximum_temperature = 1500,
|
||||
max_power_output = "200MW",
|
||||
fluid_box = {
|
||||
filter = "fu_hot_steam",
|
||||
base_area = 1,
|
||||
height = 2,
|
||||
base_level = -1,
|
||||
pipe_covers = pipecoverspictures(),
|
||||
pipe_picture = grey_south_pipe_picture,
|
||||
pipe_connections =
|
||||
{
|
||||
{type = "input-output", position = {-4, 0}},
|
||||
{type = "input-output", position = {4, 0}},
|
||||
{type = "input-output", position = {0, 4}},
|
||||
{type = "input-output", position = {0, -4}}
|
||||
},
|
||||
production_type = "input-output"
|
||||
},
|
||||
--animation
|
||||
horizontal_animation = {
|
||||
filename = sprite('entity_animation.png'),
|
||||
size = {512,512},
|
||||
scale = 0.7,
|
||||
line_length = 5,
|
||||
lines_per_file = 5,
|
||||
frame_count = 25,
|
||||
animation_speed = 0.5,
|
||||
shift = {1.85,-0.6}
|
||||
},
|
||||
vertical_animation = {
|
||||
filename = sprite('entity_animation.png'),
|
||||
size = {512,512},
|
||||
scale = 0.7,
|
||||
line_length = 5,
|
||||
lines_per_file = 5,
|
||||
frame_count = 25,
|
||||
animation_speed = 0.5,
|
||||
shift = {1.85,-0.6}
|
||||
},
|
||||
smoke = {
|
||||
{
|
||||
name = "smoke",
|
||||
tape = "trival-smoke",
|
||||
frequency = 1,
|
||||
position = {0,-3},
|
||||
--deviation = {x = -2, y = -2},
|
||||
duration = 1,
|
||||
},
|
||||
},
|
||||
working_sound =
|
||||
{
|
||||
sound = {filename = "__base__/sound/chemical-plant-3.ogg" },
|
||||
apparent_volume = 0.3,
|
||||
},
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue