From 737dc98a6a7f720d102fbc0a756d9307b14ea36c Mon Sep 17 00:00:00 2001 From: Jayefuu Date: Wed, 13 Feb 2019 08:23:49 +0000 Subject: [PATCH] Removed default ability to use landfill. Landfill removes challenge of making train paths through ore circles. Used to be disabled by command after map creation but is important enough feature of map that it should be set on init. --- map_gen/maps/line_and_trees.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/map_gen/maps/line_and_trees.lua b/map_gen/maps/line_and_trees.lua index 17f1208f..9fee47f1 100644 --- a/map_gen/maps/line_and_trees.lua +++ b/map_gen/maps/line_and_trees.lua @@ -1,6 +1,7 @@ local b = require "map_gen.shared.builders" local table = require 'utils.table' local RS = require 'map_gen.shared.redmew_surface' +local Event = require 'utils.event' local MGSP = require 'resources.map_gen_settings' local degrees = require "utils.math".degrees @@ -131,4 +132,9 @@ map = b.change_map_gen_collision_tile(map, "water-tile", "grass-1") map = b.rotate(map, degrees(90)) map = b.scale(map, 3, 3) +local function on_init() + game.forces['player'].technologies['landfill'].enabled = false +end +Event.on_init(on_init) + return map