From 0155498a207ccbc8a339bccfbb45e390e208e868 Mon Sep 17 00:00:00 2001 From: plague006 Date: Mon, 18 Feb 2019 01:56:36 -0500 Subject: [PATCH] Load apocalypse --- config.lua | 10 ++++++---- control.lua | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config.lua b/config.lua index 48861f3e..92cdc6f9 100644 --- a/config.lua +++ b/config.lua @@ -41,7 +41,7 @@ global.config = { }, -- time before a player gets the auto-trusted rank, allowing them access to the deconstructions planner, nukes, etc. rank_system = { - time_for_trust = 3*60*60*60, -- 3 hours + time_for_trust = 3 * 60 * 60 * 60, -- 3 hours everyone_is_regular = false }, -- saves players' lives if they have a small-plane in their inventory, also adds the small-plane to the market and must therefor be loaded first @@ -93,7 +93,6 @@ global.config = { -- the coordinates at which the standard market will be created standard_market_location = {x = 0, y = -5}, currency = currency, - -- defines the chance that killing an entity will drop coins and the min and max it can drop upon death entity_drop_amount = { ['biter-spawner'] = {low = 5, high = 15, chance = 1}, @@ -101,7 +100,6 @@ global.config = { ['small-worm-turret'] = {low = 2, high = 8, chance = 1}, ['medium-worm-turret'] = {low = 5, high = 15, chance = 1}, ['big-worm-turret'] = {low = 10, high = 20, chance = 1}, - -- default is 0, no chance of coins dropping from biters/spitters ['small-biter'] = {low = 1, high = 5, chance = 0}, ['small-spitter'] = {low = 1, high = 2, chance = 0}, @@ -274,7 +272,7 @@ global.config = { enabled = true }, -- sets the day/night cycle or a fixed light level. use_day_night_cycle and use_fixed_brightness are mutually exclusive - day_night ={ + day_night = { -- enables/disables the module enabled = false, -- for info on day/night cycles see https://github.com/Refactorio/RedMew/wiki/Day-Night-cycle @@ -289,6 +287,10 @@ global.config = { -- brightness is a number between 0.15 and 1 use_fixed_brightness = false, fixed_brightness = 0.5 + }, + -- enables a command which allows for an end-game event + apocalypse = { + enabled = true } } diff --git a/control.lua b/control.lua index 29f57b24..41ecde5e 100644 --- a/control.lua +++ b/control.lua @@ -82,6 +82,9 @@ end if config.day_night.enabled then require 'map_gen.shared.day_night' end +if config.apocalypse.enabled then + require 'features.apocalypse' +end -- GUIs -- The order determines the order they appear from left to right.