mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Merge pull request #1201 from grilledham/danger_ore_updates
Danger ore updates
This commit is contained in:
commit
6335e5f585
@ -83,7 +83,7 @@ global.config = {
|
||||
},
|
||||
-- enables dumping of inventories of offline players to a corpse at the player's last location
|
||||
dump_offline_inventories = {
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
offline_timout_mins = 15, -- time after which a player logs off that their inventory is provided to the team
|
||||
},
|
||||
-- enables players to create and prioritize tasks
|
||||
|
@ -1 +1 @@
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ores'
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ore'
|
||||
|
@ -17,6 +17,9 @@ return {
|
||||
'spidertron',
|
||||
'straight-rail',
|
||||
'curved-rail',
|
||||
'rail-signal',
|
||||
'rail-chain-signal',
|
||||
'train-stop',
|
||||
'locomotive',
|
||||
'cargo-wagon',
|
||||
'fluid-wagon',
|
||||
|
@ -10,9 +10,9 @@ return {
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 15},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 70},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 7},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 8}
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 72},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 6},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 7}
|
||||
}
|
||||
},
|
||||
['coal'] = {
|
||||
@ -22,10 +22,10 @@ return {
|
||||
['start'] = value(50, 0),
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 25},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 10},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 7},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 58}
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 21},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 8},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 6},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 65}
|
||||
}
|
||||
},
|
||||
['iron-ore'] = {
|
||||
@ -35,10 +35,10 @@ return {
|
||||
['start'] = value(50, 0),
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 70},
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 72},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 15},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 7},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 8}
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 6},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 7}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,56 +0,0 @@
|
||||
local b = require 'map_gen.shared.builders'
|
||||
local value = b.euclidean_value
|
||||
|
||||
return {
|
||||
['copper-ore'] = {
|
||||
['tiles'] = {
|
||||
[1] = 'red-desert-0',
|
||||
[2] = 'red-desert-1',
|
||||
[3] = 'red-desert-2',
|
||||
[4] = 'red-desert-3'
|
||||
},
|
||||
['start'] = value(50, 0),
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 15},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 70},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 10},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 5}
|
||||
}
|
||||
},
|
||||
['coal'] = {
|
||||
['tiles'] = {
|
||||
[1] = 'dirt-1',
|
||||
[2] = 'dirt-2',
|
||||
[3] = 'dirt-3',
|
||||
[4] = 'dirt-4',
|
||||
[5] = 'dirt-5',
|
||||
[6] = 'dirt-6',
|
||||
[7] = 'dirt-7'
|
||||
},
|
||||
['start'] = value(50, 0),
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 25},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 10},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 10},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 55}
|
||||
}
|
||||
},
|
||||
['iron-ore'] = {
|
||||
['tiles'] = {
|
||||
[1] = 'grass-1',
|
||||
[2] = 'grass-2',
|
||||
[3] = 'grass-3',
|
||||
[4] = 'grass-4'
|
||||
},
|
||||
['start'] = value(50, 0),
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 70},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 15},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 10},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 5}
|
||||
}
|
||||
}
|
||||
}
|
@ -13,9 +13,9 @@ return {
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 15},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 70},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 5},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 10}
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 72},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 6},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 7}
|
||||
}
|
||||
},
|
||||
['coal'] = {
|
||||
@ -31,10 +31,10 @@ return {
|
||||
['start'] = value(50, 0),
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 25},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 10},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 5},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 60}
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 21},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 8},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 6},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 65}
|
||||
}
|
||||
},
|
||||
['iron-ore'] = {
|
||||
@ -47,13 +47,13 @@ return {
|
||||
['start'] = value(50, 0),
|
||||
['weight'] = 1,
|
||||
['ratios'] = {
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 70},
|
||||
{resource = b.resource(b.full_shape, 'iron-ore', value(0, 0.75)), weight = 72},
|
||||
{resource = b.resource(b.full_shape, 'copper-ore', value(0, 0.75)), weight = 15},
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 5},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 10}
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 6},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 7}
|
||||
}
|
||||
},
|
||||
['stone'] = {
|
||||
--[[ ['stone'] = {
|
||||
['tiles'] = {
|
||||
[1] = 'sand-1',
|
||||
[2] = 'sand-2',
|
||||
@ -67,5 +67,5 @@ return {
|
||||
{resource = b.resource(b.full_shape, 'stone', value(0, 0.75)), weight = 60},
|
||||
{resource = b.resource(b.full_shape, 'coal', value(0, 0.75)), weight = 5}
|
||||
}
|
||||
}
|
||||
} ]]
|
||||
}
|
||||
|
38
map_gen/maps/danger_ores/modules/main_ores_spiral.lua
Normal file
38
map_gen/maps/danger_ores/modules/main_ores_spiral.lua
Normal file
@ -0,0 +1,38 @@
|
||||
local b = require 'map_gen.shared.builders'
|
||||
local table = require 'utils.table'
|
||||
|
||||
return function(config)
|
||||
local main_ores = config.main_ores
|
||||
local shuffle_order = config.main_ores_shuffle_order
|
||||
local main_ores_rotate = config.main_ores_rotate or 0
|
||||
|
||||
return function(tile_builder, ore_builder, spawn_shape, water_shape, random_gen)
|
||||
local shapes = {}
|
||||
|
||||
for ore_name, ore_data in pairs(main_ores) do
|
||||
local tiles = ore_data.tiles
|
||||
local land = tile_builder(tiles)
|
||||
|
||||
local ratios = ore_data.ratios
|
||||
local weighted = b.prepare_weighted_array(ratios)
|
||||
local amount = ore_data.start
|
||||
|
||||
local ore = ore_builder(ore_name, amount, ratios, weighted)
|
||||
|
||||
local shape = b.apply_entity(land, ore)
|
||||
shapes[#shapes + 1] = shape
|
||||
end
|
||||
|
||||
if shuffle_order then
|
||||
table.shuffle_table(shapes, random_gen)
|
||||
end
|
||||
|
||||
local ores = b.circular_spiral_grow_pattern(24, 24, 384, shapes)
|
||||
|
||||
if main_ores_rotate ~= 0 then
|
||||
ores = b.rotate(ores, math.rad(main_ores_rotate))
|
||||
end
|
||||
|
||||
return b.any {spawn_shape, water_shape, ores}
|
||||
end
|
||||
end
|
@ -11,7 +11,7 @@ local Core = require 'utils.core'
|
||||
local ShareGlobals = require 'map_gen.maps.danger_ores.modules.shared_globals'
|
||||
|
||||
return function(config)
|
||||
local default_name = config.scenario_name or 'terraforming-danger-ore'
|
||||
local default_name = config.scenario_name or 'danger-ore-next'
|
||||
|
||||
local map_promotion_channel = Discord.channel_names.map_promotion
|
||||
local danger_ore_role_mention = Discord.role_mentions.danger_ore
|
||||
|
@ -5,34 +5,50 @@ local b = require 'map_gen.shared.builders'
|
||||
local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Danger Bobs & Angels Ore Quadrants')
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
ScenarioInfo.set_map_name('Danger Bobs & Angels Ore')
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.add_map_extra_info(
|
||||
[[
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in 6 sectors. Each sector has a main resource.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank]
|
||||
[item=basic-transport-belt] [item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=turbo-transport-belt] [item=ultimate-transport-belt] [item=basic-underground-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=turbo-underground-belt] [item=ultimate-underground-belt]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]]
|
||||
)
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific sector to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
- Ore quadrants randomized
|
||||
- Increased time factor of biter evolution from 5 to 7
|
||||
- Added win conditions (+5% evolution every 5 rockets until 100%, +100 rockets until biters are wiped)
|
||||
|
||||
2019-03-30:
|
||||
- Uranium ore patch threshold increased slightly
|
||||
- Bug fix: Cars and tanks can now be placed onto ore!
|
||||
- Starting minimum pollution to expand map set to 650
|
||||
View current pollution via Debug Settings [F4] show-pollution-values,
|
||||
then open map and turn on pollution via the red box.
|
||||
- Starting water at spawn increased from radius 8 to radius 16 circle.
|
||||
|
||||
2019-03-27:
|
||||
- Ore arranged into quadrants to allow for more controlled resource gathering.
|
||||
|
||||
2020-09-02:
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
local main_ores_config = require 'map_gen.maps.danger_ores.config.bobangels_ores'
|
||||
@ -88,6 +104,10 @@ RS.set_map_gen_settings(
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(
|
||||
function()
|
||||
@ -128,6 +148,9 @@ rocket_launched(
|
||||
}
|
||||
)
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
|
||||
|
@ -5,35 +5,50 @@ local b = require 'map_gen.shared.builders'
|
||||
local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Terraforming Danger Ore')
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
ScenarioInfo.set_map_name('Danger Bob Ores')
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.add_map_extra_info(
|
||||
[[
|
||||
This map is split in four quadrants. Each quadrant has a main resource.
|
||||
[item=iron-ore] north east, [item=copper-ore] south west, [item=coal] north west, [item=stone] south east
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in 17 sectors. Each sector has a main resource.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]]
|
||||
)
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
- Ore quadrants randomized
|
||||
- Increased time factor of biter evolution from 5 to 7
|
||||
- Added win conditions (+5% evolution every 5 rockets until 100%, +100 rockets until biters are wiped)
|
||||
|
||||
2019-03-30:
|
||||
- Uranium ore patch threshold increased slightly
|
||||
- Bug fix: Cars and tanks can now be placed onto ore!
|
||||
- Starting minimum pollution to expand map set to 650
|
||||
View current pollution via Debug Settings [F4] show-pollution-values,
|
||||
then open map and turn on pollution via the red box.
|
||||
- Starting water at spawn increased from radius 8 to radius 16 circle.
|
||||
|
||||
2019-03-27:
|
||||
- Ore arranged into quadrants to allow for more controlled resource gathering.
|
||||
|
||||
2020-09-02:
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
local main_ores_config = require 'map_gen.maps.danger_ores.config.bob_ores'
|
||||
@ -99,6 +114,10 @@ RS.set_map_gen_settings(
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(
|
||||
function()
|
||||
@ -139,6 +158,9 @@ rocket_launched(
|
||||
}
|
||||
)
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
|
||||
|
@ -6,18 +6,46 @@ local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Danger Ores')
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
Clear the ore to expand the base:
|
||||
build extensive mining efforts, create large smelting arrays,
|
||||
use proper material ratios, and defend from enemies!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.add_map_extra_info(
|
||||
[[You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] ]]
|
||||
)
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in three sectors [item=iron-ore] [item=copper-ore] [item=coal].
|
||||
Each sector has a main resource and the other resources at a lower ratio.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
]])
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
- Ore quadrants randomized
|
||||
- Increased time factor of biter evolution from 5 to 7
|
||||
- Added win conditions (+5% evolution every 5 rockets until 100%, +100 rockets until biters are wiped)
|
||||
|
||||
2019-03-30:
|
||||
- Uranium ore patch threshold increased slightly
|
||||
- Bug fix: Cars and tanks can now be placed onto ore!
|
||||
- Starting minimum pollution to expand map set to 650
|
||||
View current pollution via Debug Settings [F4] show-pollution-values,
|
||||
then open map and turn on pollution via the red box.
|
||||
- Starting water at spawn increased from radius 8 to radius 16 circle.
|
||||
|
||||
2019-03-27:
|
||||
- Ore arranged into quadrants to allow for more controlled resource gathering.
|
||||
|
||||
2020-09-02:
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
local main_ores_config = require 'map_gen.maps.danger_ores.config.vanilla_ores'
|
||||
@ -39,6 +67,10 @@ RS.set_map_gen_settings(
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(
|
||||
function()
|
||||
@ -58,6 +90,9 @@ Event.on_init(
|
||||
end
|
||||
)
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
|
||||
@ -65,8 +100,8 @@ local config = {
|
||||
spawn_shape = b.circle(64),
|
||||
start_ore_shape = b.circle(68),
|
||||
main_ores = main_ores_config,
|
||||
--main_ores_shuffle_order = true,
|
||||
--main_ores_rotate = 45,
|
||||
main_ores_shuffle_order = true,
|
||||
main_ores_rotate = 30,
|
||||
resource_patches = resource_patches,
|
||||
resource_patches_config = resource_patches_config,
|
||||
dense_patches = dense_patches,
|
@ -6,36 +6,24 @@ local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Terraforming Danger Ore')
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.add_map_extra_info(
|
||||
[[
|
||||
This map is split in four quadrants. Each quadrant has a main resource.
|
||||
[item=iron-ore] north, [item=copper-ore] south, [item=coal] east, [item=stone] west
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in three sectors [item=iron-ore] [item=copper-ore] [item=coal].
|
||||
Each sector has a main resource and the other resources at a lower ratio.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]]
|
||||
)
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.set_new_info(
|
||||
[[
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
- Ore quadrants randomized
|
||||
@ -53,10 +41,15 @@ ScenarioInfo.set_new_info(
|
||||
2019-03-27:
|
||||
- Ore arranged into quadrants to allow for more controlled resource gathering.
|
||||
|
||||
2020-09-02
|
||||
2020-09-02:
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
]]
|
||||
)
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
global.config.redmew_qol.loaders = false
|
||||
|
||||
@ -92,6 +85,10 @@ RS.set_map_gen_settings(
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(
|
||||
function()
|
||||
@ -136,6 +133,9 @@ rocket_launched(
|
||||
}
|
||||
)
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
|
||||
@ -143,8 +143,8 @@ local config = {
|
||||
spawn_shape = b.circle(64),
|
||||
start_ore_shape = b.circle(68),
|
||||
main_ores = main_ores_config,
|
||||
--main_ores_shuffle_order = true,
|
||||
main_ores_rotate = 45,
|
||||
main_ores_shuffle_order = true,
|
||||
main_ores_rotate = 30,
|
||||
resource_patches = resource_patches,
|
||||
resource_patches_config = resource_patches_config,
|
||||
water = water,
|
||||
|
@ -5,29 +5,24 @@ local b = require 'map_gen.shared.builders'
|
||||
local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Gradient Danger Ore')
|
||||
ScenarioInfo.set_map_name('Danger Ore Gradient')
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in four quadrants. Each quadrant has a main resource.
|
||||
[item=iron-ore] north, [item=copper-ore] south, [item=coal] east, [item=stone] west
|
||||
This map is split in three sectors [item=iron-ore] [item=copper-ore] [item=coal].
|
||||
Each sector has a main resource and the other resources at a lower ratio.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
@ -50,7 +45,10 @@ ScenarioInfo.set_new_info([[
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 1000 to win the map.
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
@ -80,6 +78,10 @@ RS.set_map_gen_settings({
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(function()
|
||||
game.draw_resource_selection = false
|
||||
@ -106,7 +108,7 @@ local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launche
|
||||
rocket_launched({win_satellite_count = 500})
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'terraforming-danger-ore'})
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
@ -5,37 +5,25 @@ local b = require 'map_gen.shared.builders'
|
||||
local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Terraforming Danger Ore')
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
ScenarioInfo.set_map_name('Danger Ore Hub Spiral')
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.add_map_extra_info(
|
||||
[[
|
||||
This map is split in four quadrants. Each quadrant has a main resource.
|
||||
[item=iron-ore] north, [item=copper-ore] south, [item=coal] east, [item=stone] west
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in three sectors [item=iron-ore] [item=copper-ore] [item=coal].
|
||||
Each sector has a main resource and the other resources at a lower ratio.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]]
|
||||
)
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description(
|
||||
[[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]]
|
||||
)
|
||||
ScenarioInfo.set_new_info(
|
||||
[[
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
- Ore quadrants randomized
|
||||
@ -53,10 +41,15 @@ ScenarioInfo.set_new_info(
|
||||
2019-03-27:
|
||||
- Ore arranged into quadrants to allow for more controlled resource gathering.
|
||||
|
||||
2020-09-02
|
||||
2020-09-02:
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
]]
|
||||
)
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
local main_ores_config = require 'map_gen.maps.danger_ores.config.vanilla_ores'
|
||||
@ -90,6 +83,10 @@ RS.set_map_gen_settings(
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(
|
||||
function()
|
||||
@ -112,24 +109,13 @@ Event.on_init(
|
||||
)
|
||||
|
||||
local terraforming = require 'map_gen.maps.danger_ores.modules.terraforming'
|
||||
terraforming(
|
||||
{
|
||||
start_size = 8 * 32,
|
||||
min_pollution = 400,
|
||||
max_pollution = 5000,
|
||||
pollution_increment = 2.5
|
||||
}
|
||||
)
|
||||
local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launched'
|
||||
rocket_launched(
|
||||
{
|
||||
recent_chunks_max = 10,
|
||||
ticks_between_waves = 60 * 30,
|
||||
enemy_factor = 3,
|
||||
max_enemies_per_wave_per_chunk = 60,
|
||||
extra_rockets = 100
|
||||
}
|
||||
)
|
||||
terraforming({start_size = 8 * 32, min_pollution = 400, max_pollution = 16000, pollution_increment = 4})
|
||||
|
||||
local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launched_simple'
|
||||
rocket_launched({win_satellite_count = 500})
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
@ -143,7 +129,7 @@ local config = {
|
||||
start_ore_shape = b.circle(68),
|
||||
main_ores_builder = main_ores_builder,
|
||||
main_ores = main_ores_config,
|
||||
--main_ores_shuffle_order = true,
|
||||
main_ores_shuffle_order = true,
|
||||
--main_ores_rotate = 45,
|
||||
resource_patches = resource_patches,
|
||||
resource_patches_config = resource_patches_config,
|
||||
|
@ -5,29 +5,24 @@ local b = require 'map_gen.shared.builders'
|
||||
local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Terraforming Danger Ore')
|
||||
ScenarioInfo.set_map_name('Danger Ore Landfill')
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in four quadrants. Each quadrant has a main resource.
|
||||
[item=iron-ore] north, [item=copper-ore] south, [item=coal] east, [item=stone] west
|
||||
This map is split in three sectors [item=iron-ore] [item=copper-ore] [item=coal].
|
||||
Each sector has a main resource and the other resources at a lower ratio.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
@ -50,7 +45,10 @@ ScenarioInfo.set_new_info([[
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 1000 to win the map.
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
@ -79,6 +77,10 @@ RS.set_map_gen_settings({
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(function()
|
||||
game.draw_resource_selection = false
|
||||
@ -105,7 +107,7 @@ local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launche
|
||||
rocket_launched({win_satellite_count = 500})
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'terraforming-danger-ore'})
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
|
@ -5,29 +5,24 @@ local b = require 'map_gen.shared.builders'
|
||||
local Config = require 'config'
|
||||
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Terraforming Danger Ore')
|
||||
ScenarioInfo.set_map_name('Danger Ore Spiral')
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in four quadrants. Each quadrant has a main resource.
|
||||
[item=iron-ore] north, [item=copper-ore] south, [item=coal] east, [item=stone] west
|
||||
This map is split in three sectors [item=iron-ore] [item=copper-ore] [item=coal].
|
||||
Each sector has a main resource and the other resources at a lower ratio.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
@ -50,14 +45,16 @@ ScenarioInfo.set_new_info([[
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 1000 to win the map.
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
local main_ores_config = require 'map_gen.maps.danger_ores.config.vanilla_ore_no_stone'
|
||||
local main_ores_config = require 'map_gen.maps.danger_ores.config.vanilla_ore_landfill'
|
||||
local resource_patches = require 'map_gen.maps.danger_ores.modules.resource_patches'
|
||||
local resource_patches_config = require 'map_gen.maps.danger_ores.config.vanilla_resource_patches'
|
||||
local water = require 'map_gen.maps.danger_ores.modules.water'
|
||||
local trees = require 'map_gen.maps.danger_ores.modules.trees'
|
||||
local enemy = require 'map_gen.maps.danger_ores.modules.enemy'
|
||||
local dense_patches = require 'map_gen.maps.danger_ores.modules.dense_patches'
|
||||
@ -66,38 +63,49 @@ local banned_entities = require 'map_gen.maps.danger_ores.modules.banned_entitie
|
||||
local allowed_entities = require 'map_gen.maps.danger_ores.config.vanilla_allowed_entities'
|
||||
banned_entities(allowed_entities)
|
||||
|
||||
RS.set_map_gen_settings({
|
||||
MGSP.grass_only,
|
||||
MGSP.enable_water,
|
||||
{terrain_segmentation = 'normal', water = 'normal'},
|
||||
MGSP.starting_area_very_low,
|
||||
MGSP.ore_oil_none,
|
||||
MGSP.enemy_none,
|
||||
MGSP.cliff_none,
|
||||
MGSP.tree_none
|
||||
})
|
||||
RS.set_map_gen_settings(
|
||||
{
|
||||
MGSP.grass_only,
|
||||
MGSP.enable_water,
|
||||
{
|
||||
terrain_segmentation = 'normal',
|
||||
water = 'normal'
|
||||
},
|
||||
MGSP.starting_area_very_low,
|
||||
MGSP.ore_oil_none,
|
||||
MGSP.enemy_none,
|
||||
MGSP.cliff_none,
|
||||
MGSP.tree_none
|
||||
}
|
||||
)
|
||||
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(function()
|
||||
game.draw_resource_selection = false
|
||||
game.forces.player.technologies['mining-productivity-1'].enabled = false
|
||||
game.forces.player.technologies['mining-productivity-2'].enabled = false
|
||||
game.forces.player.technologies['mining-productivity-3'].enabled = false
|
||||
game.forces.player.technologies['mining-productivity-4'].enabled = false
|
||||
Event.on_init(
|
||||
function()
|
||||
game.draw_resource_selection = false
|
||||
game.forces.player.technologies['mining-productivity-1'].enabled = false
|
||||
game.forces.player.technologies['mining-productivity-2'].enabled = false
|
||||
game.forces.player.technologies['mining-productivity-3'].enabled = false
|
||||
game.forces.player.technologies['mining-productivity-4'].enabled = false
|
||||
|
||||
game.difficulty_settings.technology_price_multiplier = 25
|
||||
game.forces.player.technologies.logistics.researched = true
|
||||
game.forces.player.technologies.automation.researched = true
|
||||
game.difficulty_settings.technology_price_multiplier = 20
|
||||
game.forces.player.technologies.logistics.researched = true
|
||||
game.forces.player.technologies.automation.researched = true
|
||||
|
||||
game.map_settings.enemy_evolution.time_factor = 0.000007 -- default 0.000004
|
||||
game.map_settings.enemy_evolution.destroy_factor = 0.000010 -- default 0.002
|
||||
game.map_settings.enemy_evolution.pollution_factor = 0.000000 -- Pollution has no affect on evolution default 0.0000009
|
||||
game.map_settings.enemy_evolution.time_factor = 0.000007 -- default 0.000004
|
||||
game.map_settings.enemy_evolution.destroy_factor = 0.000010 -- default 0.002
|
||||
game.map_settings.enemy_evolution.pollution_factor = 0.000000 -- Pollution has no affect on evolution default 0.0000009
|
||||
|
||||
RS.get_surface().always_day = true
|
||||
end)
|
||||
RS.get_surface().always_day = true
|
||||
end
|
||||
)
|
||||
|
||||
local terraforming = require 'map_gen.maps.danger_ores.modules.terraforming'
|
||||
terraforming({start_size = 8 * 32, min_pollution = 400, max_pollution = 16000, pollution_increment = 4})
|
||||
@ -106,26 +114,26 @@ local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launche
|
||||
rocket_launched({win_satellite_count = 500})
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'terraforming-danger-ore'})
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
|
||||
local main_ores_builder = require 'map_gen.maps.danger_ores.modules.main_ores_spiral'
|
||||
|
||||
local config = {
|
||||
spawn_shape = b.circle(64),
|
||||
start_ore_shape = b.circle(68),
|
||||
spawn_tile = 'landfill',
|
||||
main_ores_builder = main_ores_builder,
|
||||
main_ores = main_ores_config,
|
||||
main_ores_shuffle_order = true,
|
||||
main_ores_rotate = 30,
|
||||
--main_ores_rotate = 45,
|
||||
resource_patches = resource_patches,
|
||||
resource_patches_config = resource_patches_config,
|
||||
water = water,
|
||||
water_scale = 1 / 96,
|
||||
water_threshold = 0.4,
|
||||
deepwater_threshold = 0.45,
|
||||
trees = trees,
|
||||
trees_scale = 1 / 64,
|
||||
trees_threshold = 0.4,
|
||||
trees_threshold = 0.35,
|
||||
trees_chance = 0.875,
|
||||
enemy = enemy,
|
||||
enemy_factor = 10 / (768 * 32),
|
||||
@ -135,7 +143,7 @@ local config = {
|
||||
dense_patches = dense_patches,
|
||||
dense_patches_scale = 1 / 48,
|
||||
dense_patches_threshold = 0.55,
|
||||
dense_patches_multiplier = 25
|
||||
dense_patches_multiplier = 50
|
||||
}
|
||||
|
||||
return map(config)
|
@ -8,26 +8,21 @@ local ScenarioInfo = require 'features.gui.info'
|
||||
ScenarioInfo.set_map_name('Terraforming Danger Ore')
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
focus mining efforts on specific sectors to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.add_map_extra_info([[
|
||||
This map is split in four quadrants. Each quadrant has a main resource.
|
||||
[item=iron-ore] north, [item=copper-ore] south, [item=coal] east, [item=stone] west
|
||||
This map is split in three sectors [item=iron-ore] [item=copper-ore] [item=coal].
|
||||
Each sector has a main resource and the other resources at a lower ratio.
|
||||
|
||||
You may not build the factory on ore patches. Exceptions:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail]
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron] [item=locomotive] [item=cargo-wagon] [item=fluid-wagon] [item=artillery-wagon]
|
||||
[item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=rail] [item=rail-signal] [item=rail-chain-signal] [item=train-stop]
|
||||
|
||||
The map size is restricted to the pollution generated. A significant amount of
|
||||
pollution must affect a section of the map before it is revealed. Pollution
|
||||
does not affect biter evolution.]])
|
||||
|
||||
ScenarioInfo.set_map_description([[
|
||||
Clear the ore to expand the base,
|
||||
focus mining efforts on specific quadrants to ensure
|
||||
proper material ratios, expand the map with pollution!
|
||||
]])
|
||||
ScenarioInfo.set_new_info([[
|
||||
2019-04-24:
|
||||
- Stone ore density reduced by 1/2
|
||||
@ -50,7 +45,10 @@ ScenarioInfo.set_new_info([[
|
||||
- Destroyed chests dump their content as coal ore.
|
||||
|
||||
2020-12-28:
|
||||
- Changed win condition. First satellite kills all biters, launch 1000 to win the map.
|
||||
- Changed win condition. First satellite kills all biters, launch 500 to win the map.
|
||||
|
||||
2021-04-06:
|
||||
- Rail signals and train stations now allowed on ore.
|
||||
]])
|
||||
|
||||
local map = require 'map_gen.maps.danger_ores.modules.map'
|
||||
@ -80,6 +78,10 @@ RS.set_map_gen_settings({
|
||||
Config.market.enabled = false
|
||||
Config.player_rewards.enabled = false
|
||||
Config.player_create.starting_items = {}
|
||||
Config.dump_offline_inventories = {
|
||||
enabled = true,
|
||||
offline_timout_mins = 30, -- time after which a player logs off that their inventory is provided to the team
|
||||
}
|
||||
|
||||
Event.on_init(function()
|
||||
game.draw_resource_selection = false
|
||||
@ -106,7 +108,7 @@ local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launche
|
||||
rocket_launched({win_satellite_count = 500})
|
||||
|
||||
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
|
||||
restart_command({scenario_name = 'terraforming-danger-ore'})
|
||||
restart_command({scenario_name = 'danger-ore-next'})
|
||||
|
||||
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
|
||||
container_dump({entity_name = 'coal'})
|
||||
@ -116,13 +118,13 @@ local config = {
|
||||
start_ore_shape = b.circle(68),
|
||||
main_ores = main_ores_config,
|
||||
main_ores_shuffle_order = true,
|
||||
main_ores_rotate = 45,
|
||||
main_ores_rotate = 30,
|
||||
resource_patches = resource_patches,
|
||||
resource_patches_config = resource_patches_config,
|
||||
water = water,
|
||||
water_scale = 1 / 96,
|
||||
water_threshold = 0.45,
|
||||
deepwater_threshold = 0.5,
|
||||
water_threshold = 0.4,
|
||||
deepwater_threshold = 0.45,
|
||||
trees = trees,
|
||||
trees_scale = 1 / 64,
|
||||
trees_threshold = 0.4,
|
||||
|
@ -13,7 +13,7 @@ return require 'map_gen.maps.default'
|
||||
|
||||
For some of our scenarios such as diggy, crash site and danger ores, they are more configurable and have presets. Look in the presets folder for each scenario you want to play, you can choose from them like this:
|
||||
return require 'map_gen.maps.danger_ores.presets.terraforming_danger_ore'
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ores_gradient'
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ore_gradient'
|
||||
return require 'map_gen.maps.crash_site.presets.normal'
|
||||
return require 'map_gen.maps.crash_site.presets.desert'
|
||||
return require 'map_gen.maps.diggy.scenario'
|
||||
|
1
scenario_templates/danger-ore-gradient/map_selection.lua
Normal file
1
scenario_templates/danger-ore-gradient/map_selection.lua
Normal file
@ -0,0 +1 @@
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ore_gradient'
|
@ -0,0 +1 @@
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ore_hub_spiral'
|
1
scenario_templates/danger-ore-landfill/map_selection.lua
Normal file
1
scenario_templates/danger-ore-landfill/map_selection.lua
Normal file
@ -0,0 +1 @@
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ore_landfill'
|
1
scenario_templates/danger-ore-next/map_selection.lua
Normal file
1
scenario_templates/danger-ore-next/map_selection.lua
Normal file
@ -0,0 +1 @@
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ore_spiral'
|
1
scenario_templates/danger-ore-spiral/map_selection.lua
Normal file
1
scenario_templates/danger-ore-spiral/map_selection.lua
Normal file
@ -0,0 +1 @@
|
||||
return require 'map_gen.maps.danger_ores.presets.danger_ore_spiral'
|
Loading…
Reference in New Issue
Block a user