mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
crash site 0.2.1
This commit is contained in:
parent
47f78a4309
commit
77e7fc4f31
@ -8,8 +8,8 @@ local Random = require 'map_gen.shared.random'
|
||||
local OutpostBuilder = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Perlin = require 'map_gen.shared.perlin_noise'
|
||||
|
||||
local outpost_seed = 2000
|
||||
local ore_seed = 3000
|
||||
local outpost_seed = 7000
|
||||
local ore_seed = 9000
|
||||
local enemy_seed = 420420
|
||||
|
||||
local outpost_random = Random.new(outpost_seed, outpost_seed * 2)
|
||||
@ -292,7 +292,7 @@ local function enemy(x, y, world)
|
||||
--[[ if Perlin.noise(x * scale_factor, y * scale_factor, enemy_seed) < 0 then
|
||||
return nil
|
||||
end ]]
|
||||
local spawner_chance = d - 128
|
||||
local spawner_chance = d - 144
|
||||
|
||||
if spawner_chance > 0 then
|
||||
spawner_chance = spawner_chance * spawner_chance_factor
|
||||
|
@ -152,6 +152,26 @@ Gui.on_custom_close(
|
||||
end
|
||||
)
|
||||
|
||||
Event.add(
|
||||
defines.events.on_player_died,
|
||||
function(event)
|
||||
local player = game.players[event.player_index or 0]
|
||||
|
||||
if not player or not player.valid then
|
||||
return
|
||||
end
|
||||
|
||||
local element = player.gui.center
|
||||
|
||||
if element and element.valid then
|
||||
element = element[market_frame_name]
|
||||
if element and element.valid then
|
||||
Gui.destroy(element)
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
Gui.on_value_changed(
|
||||
count_slider_name,
|
||||
function(event)
|
||||
|
@ -84,7 +84,6 @@ return {
|
||||
['chessindustries'] = true,
|
||||
['chukles'] = true,
|
||||
['circit'] = true,
|
||||
['claude47'] = true,
|
||||
['cogito123'] = true,
|
||||
['collin08'] = true,
|
||||
['coogan'] = true,
|
||||
@ -520,5 +519,13 @@ return {
|
||||
['SnowDrifter'] = true,
|
||||
['brockmasters'] = true,
|
||||
['monkee'] = true,
|
||||
['blacksunshine693'] = true
|
||||
['blacksunshine693'] = true,
|
||||
['Claude47'] = true,
|
||||
['Winged_Shade'] = true,
|
||||
['NWABroseidon'] = true,
|
||||
['Lusquifer'] = true,
|
||||
['Cruelcoder'] = true,
|
||||
['Unrealrules'] = true,
|
||||
['Lithidoria'] = true,
|
||||
['LordElmi'] = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user