From 76cdd261728f021cf789575cd6a6c0ef14e0c9e9 Mon Sep 17 00:00:00 2001 From: grilledham Date: Thu, 7 Jun 2018 17:26:52 +0100 Subject: [PATCH] updates --- infinite_storage_chest.lua | 3 +++ map_gen/presets/beach.lua | 2 ++ map_layout.lua | 7 ++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/infinite_storage_chest.lua b/infinite_storage_chest.lua index 0fad270c..c0b2b27b 100644 --- a/infinite_storage_chest.lua +++ b/infinite_storage_chest.lua @@ -212,3 +212,6 @@ Gui.on_custom_close( event.element.destroy() end ) + +local market_items = require 'resources.market_items' +table.insert(market_items, {price = {{'raw-fish', 100}}, offer = {type = 'give-item', item = 'infinity-chest'}}) diff --git a/map_gen/presets/beach.lua b/map_gen/presets/beach.lua index 7ce98ce2..53220c08 100644 --- a/map_gen/presets/beach.lua +++ b/map_gen/presets/beach.lua @@ -80,4 +80,6 @@ local map = b.any {b.translate(water_shape, 64, -32), sand_shape, grass} map = b.choose(bounds, map, b.empty_shape) +map = b.translate(map, 0, -64) + return map diff --git a/map_layout.lua b/map_layout.lua index dfc6f905..471fd1b0 100644 --- a/map_layout.lua +++ b/map_layout.lua @@ -128,13 +128,14 @@ end if shape then local surfaces = { - ['nauvis'] = shape, + ['nauvis'] = shape, } - --require('map_gen.shared.generate')({surfaces = surfaces, regen_decoratives = regen_decoratives, tiles_per_tick = tiles_per_tick}) - require ("map_gen.shared.generate_not_threaded")({surfaces = surfaces, regen_decoratives = regen_decoratives}) + require('map_gen.shared.generate')({surfaces = surfaces, regen_decoratives = regen_decoratives, tiles_per_tick = tiles_per_tick}) + --require ("map_gen.shared.generate_not_threaded")({surfaces = surfaces, regen_decoratives = regen_decoratives}) end +local Event = require 'utils.event' Event.add( defines.events.on_player_built_tile, function(event)