2018-09-08 18:29:27 +02:00
|
|
|
-- dependencies
|
|
|
|
|
|
|
|
-- this
|
|
|
|
local Config = {
|
|
|
|
-- enable debug mode, shows extra messages
|
2018-10-13 00:21:20 +02:00
|
|
|
debug = false,
|
2018-09-08 18:29:27 +02:00
|
|
|
|
2018-09-14 21:42:58 +02:00
|
|
|
-- allow cheats. Example: by default the player will have X mining speed
|
2018-10-13 00:21:20 +02:00
|
|
|
cheats = false,
|
2018-09-08 18:29:27 +02:00
|
|
|
|
|
|
|
-- a list of features to register and enable
|
|
|
|
-- to disable a feature, change the flag
|
|
|
|
features = {
|
|
|
|
StartingZone = {
|
|
|
|
enabled = true,
|
2018-09-14 21:42:58 +02:00
|
|
|
|
|
|
|
-- initial starting position size, values higher than 30 might break
|
|
|
|
starting_size = 8,
|
2018-09-08 18:29:27 +02:00
|
|
|
},
|
|
|
|
SetupPlayer = {
|
|
|
|
enabled = true,
|
2018-09-14 21:42:58 +02:00
|
|
|
starting_items = {
|
2018-10-06 15:53:28 +02:00
|
|
|
{name = 'iron-axe', count = 1},
|
2018-09-14 21:42:58 +02:00
|
|
|
{name = 'stone-wall', count = 10},
|
|
|
|
},
|
|
|
|
cheats = {
|
2018-09-23 17:13:54 +02:00
|
|
|
manual_mining_speed_modifier = 1000,
|
2018-09-14 21:42:58 +02:00
|
|
|
},
|
2018-09-08 18:29:27 +02:00
|
|
|
},
|
|
|
|
DiggyHole = {
|
|
|
|
enabled = true,
|
|
|
|
},
|
|
|
|
DiggyCaveCollapse = {
|
|
|
|
enabled = true,
|
2018-09-25 21:34:36 +02:00
|
|
|
|
|
|
|
-- adds per tile what the current stress is
|
2018-10-01 22:28:53 +02:00
|
|
|
enable_stress_grid = false,
|
2018-09-25 21:34:36 +02:00
|
|
|
|
2018-10-03 00:58:38 +02:00
|
|
|
-- shows the mask on spawn
|
|
|
|
enable_mask_debug = false,
|
|
|
|
|
2018-10-15 13:55:01 +02:00
|
|
|
-- enables commands like /test-tile-support-range
|
|
|
|
enable_debug_commands = true,
|
|
|
|
|
2018-10-03 22:56:48 +02:00
|
|
|
--the size of the mask used
|
|
|
|
mask_size = 9,
|
|
|
|
|
|
|
|
--how much the mask will effect tiles in the different rings of the mask
|
2018-10-11 20:13:42 +02:00
|
|
|
mask_relative_ring_weights = {2, 3, 4},
|
2018-10-03 22:56:48 +02:00
|
|
|
|
2018-09-25 17:58:35 +02:00
|
|
|
-- delay in seconds before the cave collapses
|
2018-10-07 19:40:30 +02:00
|
|
|
collapse_delay = 2.5,
|
2018-09-25 21:34:36 +02:00
|
|
|
|
2018-09-25 17:58:35 +02:00
|
|
|
-- the threshold that will be applied to all neighbors on a collapse via a mask
|
2018-10-14 12:19:36 +02:00
|
|
|
collapse_threshold_total_strength = 16,
|
2018-09-25 21:34:36 +02:00
|
|
|
|
2018-09-08 18:29:27 +02:00
|
|
|
support_beam_entities = {
|
2018-10-15 13:53:56 +02:00
|
|
|
['market'] = 9,
|
|
|
|
['stone-wall'] = 3,
|
|
|
|
['sand-rock-big'] = 2,
|
|
|
|
['out-of-map'] = 1,
|
|
|
|
['stone-brick'] = 0.01,
|
|
|
|
['stone-path'] = 0.01,
|
|
|
|
['concrete'] = 0.02,
|
|
|
|
['hazard-concrete-left'] = 0.02,
|
|
|
|
['hazard-concrete-right'] = 0.02,
|
|
|
|
['refined-concrete'] = 0.03,
|
|
|
|
['refined-hazard-concrete-left'] = 0.03,
|
|
|
|
['refined-hazard-concrete-right'] = 0.03,
|
2018-09-08 18:29:27 +02:00
|
|
|
},
|
2018-09-21 11:44:40 +02:00
|
|
|
cracking_sounds = {
|
2018-09-25 17:58:35 +02:00
|
|
|
'CRACK',
|
2018-10-14 12:19:36 +02:00
|
|
|
'KRRRR',
|
2018-09-21 11:44:40 +02:00
|
|
|
}
|
2018-09-08 18:29:27 +02:00
|
|
|
},
|
|
|
|
RefreshMap = {
|
|
|
|
enabled = true,
|
|
|
|
},
|
|
|
|
SimpleRoomGenerator = {
|
2018-09-25 21:34:36 +02:00
|
|
|
enabled = true,
|
2018-09-26 20:07:22 +02:00
|
|
|
|
|
|
|
-- value between 0 and 1, higher value means stronger variance between coordinates
|
2018-10-12 19:37:16 +02:00
|
|
|
noise_variance = 0.066,
|
2018-09-25 21:34:36 +02:00
|
|
|
|
|
|
|
-- adds per tile what the current noise is
|
2018-09-30 21:55:29 +02:00
|
|
|
enable_noise_grid = false,
|
2018-09-30 15:33:53 +02:00
|
|
|
|
|
|
|
-- minimum distance and noise range required for water to spawn
|
2018-10-01 22:28:53 +02:00
|
|
|
room_noise_minimum_distance = 9,
|
2018-09-30 15:33:53 +02:00
|
|
|
room_noise_ranges = {
|
2018-10-12 19:37:16 +02:00
|
|
|
{name = 'water', min = 0.54, max = 1},
|
|
|
|
{name = 'dirt', min = 0.39, max = 0.53},
|
2018-09-30 15:33:53 +02:00
|
|
|
},
|
2018-09-08 18:29:27 +02:00
|
|
|
},
|
2018-09-23 17:13:54 +02:00
|
|
|
ScatteredResources = {
|
|
|
|
enabled = true,
|
|
|
|
|
|
|
|
-- percentage of resource added to the sum. 100 tiles means
|
|
|
|
-- 10% more resources with a distance_richness_modifier of 10
|
|
|
|
-- 20% more resources with a distance_richness_modifier of 5
|
|
|
|
distance_richness_modifier = 5,
|
|
|
|
|
|
|
|
-- defines the increased chance of spawning resources
|
|
|
|
-- calculated_probability = resource_probability + ((distance / distance_probability_modifier) / 100)
|
|
|
|
distance_probability_modifier = 2,
|
|
|
|
|
|
|
|
-- increases the amount of oil * oil_value_modifier
|
2018-10-06 00:00:00 +02:00
|
|
|
oil_value_modifier = 650,
|
2018-09-23 17:13:54 +02:00
|
|
|
|
|
|
|
-- percentage of chance that resources will spawn after mining
|
2018-10-06 00:00:00 +02:00
|
|
|
resource_probability = 0.15,
|
2018-09-23 17:13:54 +02:00
|
|
|
|
|
|
|
-- max chance of spawning resources based on resource_probability + calculated distance_probability_modifier
|
2018-10-06 00:00:00 +02:00
|
|
|
max_resource_probability = 0.45,
|
2018-09-23 17:13:54 +02:00
|
|
|
|
|
|
|
-- chances per resource of spawning, sum must be 1.00
|
|
|
|
resource_chances = {
|
2018-10-06 15:53:28 +02:00
|
|
|
['coal'] = 0.21,
|
|
|
|
['copper-ore'] = 0.30,
|
2018-09-23 17:13:54 +02:00
|
|
|
['iron-ore'] = 0.26,
|
2018-10-06 15:53:28 +02:00
|
|
|
['stone'] = 0.20,
|
2018-09-23 17:13:54 +02:00
|
|
|
['uranium-ore'] = 0.02,
|
2018-09-25 17:58:35 +02:00
|
|
|
['crude-oil'] = 0.01,
|
2018-09-23 17:13:54 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
-- minimum distance from the spawn point required before it spawns
|
|
|
|
minimum_resource_distance = {
|
2018-10-06 00:00:00 +02:00
|
|
|
['coal'] = 16,
|
|
|
|
['copper-ore'] = 18,
|
|
|
|
['iron-ore'] = 18,
|
|
|
|
['stone'] = 15,
|
|
|
|
['uranium-ore'] = 86,
|
|
|
|
['crude-oil'] = 57,
|
2018-09-23 17:13:54 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
-- defines the chance of which resource_richness_value to spawn, sum must be 1.00
|
|
|
|
resource_richness_probability = {
|
2018-10-06 00:00:00 +02:00
|
|
|
['scarce'] = 0.40,
|
|
|
|
['low'] = 0.28,
|
|
|
|
['sufficient'] = 0.16,
|
|
|
|
['good'] = 0.10,
|
|
|
|
['plenty'] = 0.04,
|
2018-09-23 17:13:54 +02:00
|
|
|
['jackpot'] = 0.02,
|
|
|
|
},
|
|
|
|
|
|
|
|
-- defines the min and max range of ores to spawn
|
|
|
|
resource_richness_values = {
|
|
|
|
['scarce'] = {1, 200},
|
|
|
|
['low'] = {201, 400},
|
|
|
|
['sufficient'] = {401, 750},
|
|
|
|
['good'] = {751, 1200},
|
|
|
|
['plenty'] = {1201, 2000},
|
|
|
|
['jackpot'] = {2001, 5000},
|
|
|
|
},
|
|
|
|
},
|
2018-10-03 22:11:24 +02:00
|
|
|
AlienSpawner = {
|
2018-10-14 12:19:36 +02:00
|
|
|
enabled = false,
|
2018-10-03 22:11:24 +02:00
|
|
|
|
|
|
|
-- minimum distance from spawn before aliens can spawn
|
2018-10-03 22:26:40 +02:00
|
|
|
alien_minimum_distance = 35,
|
2018-10-03 22:11:24 +02:00
|
|
|
|
|
|
|
-- chance of spawning aliens when mining
|
|
|
|
alien_probability = 0.07,
|
2018-10-06 00:00:00 +02:00
|
|
|
},
|
2018-10-10 20:49:49 +02:00
|
|
|
MarketExchange = {
|
2018-10-06 00:00:00 +02:00
|
|
|
enabled = true,
|
|
|
|
|
|
|
|
-- percentage * mining productivity level gets added to mining speed
|
2018-10-10 20:49:49 +02:00
|
|
|
mining_speed_productivity_multiplier = 10,
|
2018-10-06 15:53:28 +02:00
|
|
|
|
2018-10-10 20:49:49 +02:00
|
|
|
-- market config
|
|
|
|
market_spawn_position = {x = 0, y = 4},
|
2018-10-06 15:53:28 +02:00
|
|
|
stone_to_surface_amount = 50,
|
|
|
|
currency_item = 'stone',
|
|
|
|
|
2018-10-10 20:49:49 +02:00
|
|
|
unlockables = {
|
|
|
|
{stone = 50, type = 'buff', prototype = {name = 'mining_speed', value = 10}},
|
|
|
|
{stone = 50, type = 'buff', prototype = {name = 'inventory_slot', value = 3}},
|
2018-10-11 22:17:25 +02:00
|
|
|
{stone = 50, type = 'market', prototype = {price = 50, name = 'raw-fish'}},
|
|
|
|
{stone = 50, type = 'market', prototype = {price = 175, name = 'steel-axe'}},
|
2018-10-10 20:49:49 +02:00
|
|
|
|
|
|
|
{stone = 250, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 250, type = 'buff', prototype = {name = 'inventory_slot', value = 2}},
|
2018-10-11 22:17:25 +02:00
|
|
|
{stone = 250, type = 'market', prototype = {price = 50, name = 'small-electric-pole'}},
|
|
|
|
{stone = 250, type = 'market', prototype = {price = 50, name = 'small-lamp'}},
|
|
|
|
{stone = 250, type = 'market', prototype = {price = 25, name = 'stone-brick'}},
|
|
|
|
{stone = 250, type = 'market', prototype = {price = 125, name = 'stone-wall'}},
|
2018-10-10 20:49:49 +02:00
|
|
|
|
|
|
|
{stone = 450, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 450, type = 'buff', prototype = {name = 'inventory_slot', value = 2}},
|
2018-10-12 19:37:16 +02:00
|
|
|
{stone = 450, type = 'market', prototype = {price = 850, name = 'submachine-gun'}},
|
|
|
|
{stone = 450, type = 'market', prototype = {price = 50, name = 'firearm-magazine'}},
|
2018-10-11 22:17:25 +02:00
|
|
|
{stone = 450, type = 'market', prototype = {price = 500, name = 'light-armor'}},
|
2018-10-10 20:49:49 +02:00
|
|
|
|
|
|
|
{stone = 750, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 750, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
{stone = 1250, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 1250, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
{stone = 1750, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 1750, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
{stone = 2500, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 2500, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
{stone = 4000, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 4000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
{stone = 6500, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 6500, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
{stone = 8000, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 8000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
|
|
|
|
{stone = 10000, type = 'buff', prototype = {name = 'mining_speed', value = 5}},
|
|
|
|
{stone = 10000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
2018-10-11 22:17:25 +02:00
|
|
|
{stone = 10000, type = 'market', prototype = {price = 750, name = 'heavy-armor'}},
|
2018-10-10 20:49:49 +02:00
|
|
|
|
2018-10-13 00:21:20 +02:00
|
|
|
{stone = 15000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
2018-10-10 20:49:49 +02:00
|
|
|
{stone = 15000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
2018-10-13 00:21:20 +02:00
|
|
|
{stone = 25000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
2018-10-10 20:49:49 +02:00
|
|
|
{stone = 25000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
|
2018-10-13 00:21:20 +02:00
|
|
|
{stone = 35000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
2018-10-10 20:49:49 +02:00
|
|
|
{stone = 35000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
2018-10-13 00:21:20 +02:00
|
|
|
{stone = 35000, type = 'market', prototype = {price = 100, name = 'piercing-rounds-magazine'}},
|
2018-10-11 22:17:25 +02:00
|
|
|
{stone = 35000, type = 'market', prototype = {price = 1500, name = 'modular-armor'}},
|
2018-10-10 20:49:49 +02:00
|
|
|
|
2018-10-13 00:21:20 +02:00
|
|
|
{stone = 50000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
2018-10-10 20:49:49 +02:00
|
|
|
{stone = 50000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
2018-10-13 00:21:20 +02:00
|
|
|
|
|
|
|
{stone = 75000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 75000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
|
|
|
|
{stone = 100000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 100000, type = 'buff', prototype = {name = 'inventory_slot', value = 1}},
|
|
|
|
|
|
|
|
{stone = 125000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 150000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 175000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 200000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 225000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 250000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 275000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 300000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 350000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 400000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
|
|
|
{stone = 500000, type = 'buff', prototype = {name = 'mining_speed', value = 2}},
|
2018-10-06 15:53:28 +02:00
|
|
|
},
|
|
|
|
},
|
2018-09-08 18:29:27 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
return Config
|