diff --git a/changelog.txt b/changelog.txt index 57640fd..7cb7ee9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Date: 13.5.2022 Features: - added a better ceramic recipe in fission stage - added descriptions to a lot of machines/items + - added high capacity steam turbine Changes: - all building icons are now brighter diff --git a/data.lua b/data.lua index 9592809..c2e2321 100644 --- a/data.lua +++ b/data.lua @@ -60,6 +60,7 @@ require('prototypes/fusion/fu_plasma') require('prototypes/fusion/fu_materials') require('prototypes/fusion/fu_magnet') require('prototypes/fusion/fu_miner') +require('prototypes/fusion/fu_turbine') require('prototypes/gravitation/gr_crafter') require('prototypes/gravitation/gr_materials') diff --git a/locale/en/lang_en.cfg b/locale/en/lang_en.cfg index 8bc7d92..7d247b2 100644 --- a/locale/en/lang_en.cfg +++ b/locale/en/lang_en.cfg @@ -206,6 +206,7 @@ fu_hydrogen=Hydrogen fu_oxygen=Oxygen fu_lead_fluid_hot=Liquid lead coolant [color=red](1500°C)[/color] fu_lead_fluid_cold=Liquid lead coolant [color=blue](500°C)[/color] +fu_hot_steam=Critical steam fu_protium=Protium-H[1] fu_deuterium=Deuterium-H[2] fu_tritium=Tritium-H[3] @@ -399,6 +400,7 @@ fu_star_engine_cooler_up_entity=Star engine - cooling unit (top side) fu_star_engine_core_entity=Star engine - fusion core fu_star_engine_heater_entity=Star engine - heating unit (right side) fu_star_engine_heater_left_entity=Star engine - heating unit (left side) +fu_turbine_entity=Big turbine fu_laser_entity=Laser facility fu_plasma_entity=Plasma facility @@ -482,6 +484,7 @@ fu_tokamak_tech=Tokamak reactor fu_robo_tech=Advanced bots fu_activator_tech=Advanced isotopes fu_miner_tech=Stone mining +fu_turbine_tech=Big turbine fu_hydrogen_1_tech=Hydrogen refining 1 fu_hydrogen_2_tech=Hydrogen refining 2 diff --git a/prototypes/248k_fluids.lua b/prototypes/248k_fluids.lua index 0edac91..f07b697 100644 --- a/prototypes/248k_fluids.lua +++ b/prototypes/248k_fluids.lua @@ -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', + }, }) \ No newline at end of file diff --git a/prototypes/248k_techs.lua b/prototypes/248k_techs.lua index 32bdd25..5547f58 100644 --- a/prototypes/248k_techs.lua +++ b/prototypes/248k_techs.lua @@ -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', diff --git a/prototypes/fu_recipes.lua b/prototypes/fu_recipes.lua index 36dec82..d155c27 100644 --- a/prototypes/fu_recipes.lua +++ b/prototypes/fu_recipes.lua @@ -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', diff --git a/prototypes/fusion/fu_turbine.lua b/prototypes/fusion/fu_turbine.lua new file mode 100644 index 0000000..7b4afe3 --- /dev/null +++ b/prototypes/fusion/fu_turbine.lua @@ -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, + }, + }, +}) \ No newline at end of file diff --git a/ressources/fluids/fu_hot_steam.png b/ressources/fluids/fu_hot_steam.png new file mode 100644 index 0000000..c599414 Binary files /dev/null and b/ressources/fluids/fu_hot_steam.png differ diff --git a/ressources/fusion/fu_turbine/fu_turbine_entity_animation.png b/ressources/fusion/fu_turbine/fu_turbine_entity_animation.png new file mode 100644 index 0000000..c74778e Binary files /dev/null and b/ressources/fusion/fu_turbine/fu_turbine_entity_animation.png differ diff --git a/ressources/fusion/fu_turbine/fu_turbine_entity_base.png b/ressources/fusion/fu_turbine/fu_turbine_entity_base.png new file mode 100644 index 0000000..3c1d807 Binary files /dev/null and b/ressources/fusion/fu_turbine/fu_turbine_entity_base.png differ diff --git a/ressources/fusion/fu_turbine/fu_turbine_icon.png b/ressources/fusion/fu_turbine/fu_turbine_icon.png new file mode 100644 index 0000000..3737ef7 Binary files /dev/null and b/ressources/fusion/fu_turbine/fu_turbine_icon.png differ diff --git a/ressources/techs/fu_turbine_tech.png b/ressources/techs/fu_turbine_tech.png new file mode 100644 index 0000000..79aa05e Binary files /dev/null and b/ressources/techs/fu_turbine_tech.png differ