2017-09-26 23:18:28 +02:00
|
|
|
|
|
|
|
local function fillVanillaConfig()
|
|
|
|
|
|
|
|
config["iron-ore"] = {
|
|
|
|
type="resource-ore",
|
|
|
|
|
|
|
|
-- general spawn params
|
|
|
|
allotment=100, -- how common resource is
|
2017-11-08 13:25:28 +02:00
|
|
|
spawns_per_region={min=1, max=2}, --number of chunks
|
2017-11-23 00:55:51 +02:00
|
|
|
richness=12000, -- resource_ore has only one richness value - resource-liquid has min/max
|
2017-09-26 23:18:28 +02:00
|
|
|
|
2017-11-08 13:25:28 +02:00
|
|
|
size={min=20, max=50}, -- rough radius of area, too high value can produce square shaped areas
|
2017-09-26 23:18:28 +02:00
|
|
|
min_amount=500,
|
|
|
|
|
|
|
|
-- resource provided at starting location
|
|
|
|
-- probability: 1 = 100% chance to be in starting area
|
|
|
|
-- 0 = resource is not in starting area
|
2017-11-16 11:20:49 +02:00
|
|
|
starting={richness=20000, size=35, probability=1},
|
2017-09-26 23:18:28 +02:00
|
|
|
|
|
|
|
multi_resource_chance=0.20, -- absolute value
|
|
|
|
multi_resource={
|
|
|
|
["iron-ore"] = 2, -- ["resource_name"] = allotment
|
|
|
|
['copper-ore'] = 4,
|
|
|
|
["coal"] = 4,
|
|
|
|
["stone"] = 4,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
config["copper-ore"] = {
|
|
|
|
type="resource-ore",
|
|
|
|
|
2017-11-28 17:00:08 +02:00
|
|
|
allotment=90,
|
2017-11-08 13:25:28 +02:00
|
|
|
spawns_per_region={min=1, max=2},
|
2017-11-23 00:55:51 +02:00
|
|
|
richness=11000,
|
2017-11-08 13:25:28 +02:00
|
|
|
size={min=20, max=50},
|
2017-09-26 23:18:28 +02:00
|
|
|
min_amount=500,
|
|
|
|
|
2017-11-08 13:25:28 +02:00
|
|
|
starting={richness=12000, size=25, probability=1},
|
2017-09-26 23:18:28 +02:00
|
|
|
|
|
|
|
multi_resource_chance=0.20,
|
|
|
|
multi_resource={
|
|
|
|
["iron-ore"] = 4,
|
|
|
|
['copper-ore'] = 2,
|
|
|
|
["coal"] = 4,
|
|
|
|
["stone"] = 4,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
config["coal"] = {
|
|
|
|
type="resource-ore",
|
|
|
|
|
|
|
|
allotment=80,
|
|
|
|
|
|
|
|
spawns_per_region={min=1, max=1},
|
|
|
|
size={min=15, max=25},
|
2017-11-23 00:55:51 +02:00
|
|
|
richness=8000,
|
2017-09-26 23:18:28 +02:00
|
|
|
min_amount=500,
|
|
|
|
|
|
|
|
starting={richness=6000, size=20, probability=1},
|
|
|
|
|
2017-11-08 13:25:28 +02:00
|
|
|
multi_resource_chance=0.75,
|
2017-09-26 23:18:28 +02:00
|
|
|
multi_resource={
|
|
|
|
["crude-oil"] = 1,
|
|
|
|
["iron-ore"] = 3,
|
|
|
|
['copper-ore'] = 3,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
config["stone"] = {
|
|
|
|
type="resource-ore",
|
|
|
|
|
|
|
|
allotment=60,
|
|
|
|
spawns_per_region={min=1, max=1},
|
2017-11-23 00:55:51 +02:00
|
|
|
richness=5000,
|
2017-09-26 23:18:28 +02:00
|
|
|
size={min=15, max=20},
|
|
|
|
min_amount=250,
|
|
|
|
|
|
|
|
starting={richness=5000, size=16, probability=1},
|
|
|
|
|
|
|
|
multi_resource_chance=0.30,
|
|
|
|
multi_resource={
|
|
|
|
["coal"] = 4,
|
|
|
|
["iron-ore"] = 3,
|
|
|
|
['copper-ore'] = 3,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
config["uranium-ore"] = {
|
|
|
|
type="resource-ore",
|
|
|
|
|
|
|
|
allotment=40,
|
|
|
|
spawns_per_region={min=1, max=1},
|
2017-11-23 00:55:51 +02:00
|
|
|
richness=4000,
|
2017-09-26 23:18:28 +02:00
|
|
|
size={min=10, max=15},
|
|
|
|
min_amount=500,
|
|
|
|
|
|
|
|
starting={richness=2000, size=10, probability=1},
|
|
|
|
}
|
|
|
|
|
|
|
|
config["crude-oil"] = {
|
|
|
|
type="resource-liquid",
|
2017-11-23 00:55:51 +02:00
|
|
|
minimum_amount=200000,
|
2017-09-28 17:43:42 +02:00
|
|
|
allotment=70,
|
2017-11-23 00:55:51 +02:00
|
|
|
spawns_per_region={min=1, max=1},
|
|
|
|
richness={min=200000, max=300000}, -- richness per resource spawn
|
2017-11-08 13:25:28 +02:00
|
|
|
size={min=5, max=20},
|
2017-09-26 23:18:28 +02:00
|
|
|
|
|
|
|
starting={richness=400000, size=3, probability=1},
|
|
|
|
|
|
|
|
multi_resource_chance=0.20,
|
|
|
|
multi_resource={
|
|
|
|
["coal"] = 4,
|
|
|
|
["uranium-ore"] = 1,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function loadResourceConfig()
|
|
|
|
|
|
|
|
config={}
|
|
|
|
|
|
|
|
fillVanillaConfig()
|
|
|
|
|
|
|
|
return config
|
|
|
|
end
|