From 3a3dcad25064aa28c4522b5e4c51bf355bff3c15 Mon Sep 17 00:00:00 2001 From: James Gillham Date: Mon, 5 Oct 2020 20:10:49 +0100 Subject: [PATCH] Change crashsite cutscene surface to not spawn enemies. --- .../crash_site/cutscene_surface_settings.lua | 69 +++++++++++++++++++ map_gen/maps/crash_site/scenario.lua | 3 +- 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 map_gen/maps/crash_site/cutscene_surface_settings.lua diff --git a/map_gen/maps/crash_site/cutscene_surface_settings.lua b/map_gen/maps/crash_site/cutscene_surface_settings.lua new file mode 100644 index 00000000..df7f581f --- /dev/null +++ b/map_gen/maps/crash_site/cutscene_surface_settings.lua @@ -0,0 +1,69 @@ +return { + autoplace_settings = { + tile = { + treat_missing_as_default = false, + settings = { + ['grass-1'] = {frequency = 1, size = 1, richness = 1}, + ['grass-2'] = {frequency = 1, size = 1, richness = 1}, + ['grass-3'] = {frequency = 1, size = 1, richness = 1}, + ['grass-4'] = {frequency = 1, size = 1, richness = 1} + } + } + }, + autoplace_controls = { + ['enemy-base'] = { + frequency = 1, + richness = 1, + size = 0 + }, + trees = { + frequency = 1, + richness = 1, + size = 0 + }, + coal = { + frequency = 1, + richness = 1, + size = 0 + }, + ['copper-ore'] = { + frequency = 1, + richness = 1, + size = 0 + }, + ['crude-oil'] = { + frequency = 1, + richness = 1, + size = 0 + }, + ['iron-ore'] = { + frequency = 1, + richness = 1, + size = 0 + }, + stone = { + frequency = 1, + richness = 1, + size = 0 + }, + ['uranium-ore'] = { + frequency = 1, + richness = 1, + size = 0 + } + }, + cliff_settings = { + cliff_elevation_0 = 1024, + cliff_elevation_interval = 10, + name = 'cliff' + }, + height = 256, + width = 256, + peaceful_mode = false, + seed = 1, + starting_points = { + {x = 0, y = 0} + }, + terrain_segmentation = 1, + water = 1 +} diff --git a/map_gen/maps/crash_site/scenario.lua b/map_gen/maps/crash_site/scenario.lua index 48f843b2..bbbe4955 100644 --- a/map_gen/maps/crash_site/scenario.lua +++ b/map_gen/maps/crash_site/scenario.lua @@ -15,6 +15,7 @@ local RS = require 'map_gen.shared.redmew_surface' local MGSP = require 'resources.map_gen_settings' local RedmewConfig = require 'config' local Cutscene = require 'map_gen.maps.crash_site.cutscene' +local cutscene_surface_settings = require 'map_gen.maps.crash_site.cutscene_surface_settings' local degrees = math.degrees local cutscene_force_name = 'cutscene' @@ -187,7 +188,7 @@ local function init(config) local outpost_builder = OutpostBuilder.new(outpost_random) if on_init then - game.create_surface('cutscene', default_map_gen_settings) + game.create_surface('cutscene', cutscene_surface_settings) game.surfaces.cutscene.always_day = true game.surfaces.cutscene.request_to_generate_chunks({0, 0}, 2) game.surfaces.cutscene.force_generate_chunk_requests()