From ac46e2283658367428cc9134afa0d6593ef8f571 Mon Sep 17 00:00:00 2001 From: Jayefuu <28716932+Jayefuu@users.noreply.github.com> Date: Thu, 10 Mar 2022 18:47:53 +0000 Subject: [PATCH] Changed position of the barrage chest - Suggestion by Pumba - Moved the barrage chest for better symmetry of the loaders (apparently) --- map_gen/maps/crash_site/commands.lua | 4 ++-- map_gen/maps/crash_site/scenario.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/map_gen/maps/crash_site/commands.lua b/map_gen/maps/crash_site/commands.lua index cde767ff..1c871bb6 100644 --- a/map_gen/maps/crash_site/commands.lua +++ b/map_gen/maps/crash_site/commands.lua @@ -510,11 +510,11 @@ function Public.control(config) end -- Check that the chest is where it should be. - local entities = s.find_entities_filtered {position = {2.5, -1.5}, type = 'logistic-container', limit = 1} + local entities = s.find_entities_filtered {position = {-3.5, -7.5}, type = 'logistic-container', limit = 1} local dropbox = entities[1] if dropbox == nil then - player.print("Chest not found. Replace it here: [gps=2.5,-1.5,redmew]") + player.print("Chest not found. Replace it here: [gps=-3.5,-7.5,redmew]") return end diff --git a/map_gen/maps/crash_site/scenario.lua b/map_gen/maps/crash_site/scenario.lua index 2dada685..4957a4e1 100644 --- a/map_gen/maps/crash_site/scenario.lua +++ b/map_gen/maps/crash_site/scenario.lua @@ -862,6 +862,7 @@ local function init(config) [1] = { market = market, chest = chest, + [5] = {entity = {name = 'logistic-chest-requester', force = 'player', callback = 'chest'}}, [29] = {entity = {name = 'market', force = 'neutral', callback = 'market'}}, [32] = {entity = {name = 'steel-chest', force = 'player', callback = 'chest'}} }, @@ -873,7 +874,6 @@ local function init(config) [3] = {entity = {name = 'logistic-chest-requester', force = 'player', callback = 'chest'}}, [25] = {entity = {name = 'burner-inserter', direction = 2, callback = 'inserter'}}, [27] = {entity = {name = 'electric-furnace', callback = 'factory'}}, - [51] = {entity = {name = 'logistic-chest-requester', force = 'player', callback = 'chest'}} } } @@ -898,7 +898,7 @@ Global.register_init( -- Sprites for the spawn chests. Is there a better place for these? rendering.draw_sprite{sprite = "item.poison-capsule", target = {2.5, -8.5}, surface = game.surfaces["redmew"], tint={1, 1, 1, 0.1}} - rendering.draw_sprite{sprite = "item.explosive-rocket", target = {2.5, -2.5}, surface = game.surfaces["redmew"], tint={1, 1, 1, 0.1}} + rendering.draw_sprite{sprite = "item.explosive-rocket", target = {-3.5, -8.5}, surface = game.surfaces["redmew"], tint={1, 1, 1, 0.1}} local surface = game.surfaces[1] surface.map_gen_settings = {width = 2, height = 2}