mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-05 13:15:03 +02:00
mtn v3 - add some loot to scrapyard
This commit is contained in:
parent
4fbf4ae2e9
commit
3074109c16
@ -882,6 +882,7 @@ local function process_scrap_zone_1(x, y, data, void_or_lab)
|
||||
local tiles = data.tiles
|
||||
local entities = data.entities
|
||||
local buildings = data.buildings
|
||||
local treasure = data.treasure
|
||||
|
||||
local scrapyard = get_perlin('scrapyard', p, seed)
|
||||
local smol_areas = get_perlin('smol_areas', p, seed + 35000)
|
||||
@ -908,6 +909,9 @@ local function process_scrap_zone_1(x, y, data, void_or_lab)
|
||||
else
|
||||
spawn_turret(entities, p, 4)
|
||||
end
|
||||
if random(1, 2048) == 1 then
|
||||
treasure[#treasure + 1] = {position = p, chest = 'wooden-chest'}
|
||||
end
|
||||
end
|
||||
tiles[#tiles + 1] = {name = 'dirt-7', position = p}
|
||||
if scrapyard < -0.55 or scrapyard > 0.55 then
|
||||
@ -945,6 +949,7 @@ local function process_scrap_zone_1(x, y, data, void_or_lab)
|
||||
if random(1, 5) > 1 then
|
||||
entities[#entities + 1] = {name = scrap_mineable_entities[random(1, scrap_mineable_entities_index)], position = p, force = 'neutral'}
|
||||
end
|
||||
|
||||
if random(1, 256) == 1 then
|
||||
entities[#entities + 1] = {name = 'land-mine', position = p, force = 'enemy'}
|
||||
end
|
||||
@ -976,6 +981,9 @@ local function process_scrap_zone_1(x, y, data, void_or_lab)
|
||||
if random(1, 2) == 1 then
|
||||
entities[#entities + 1] = {name = rock_raffle[random(1, size_of_rock_raffle)], position = p}
|
||||
end
|
||||
if random(1, 2048) == 1 then
|
||||
treasure[#treasure + 1] = {position = p, chest = 'wooden-chest'}
|
||||
end
|
||||
return
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user