mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-04 00:15:45 +02:00
spawn offset + poll timeout
This commit is contained in:
parent
a65ba087c2
commit
4f3d870e0d
@ -433,7 +433,7 @@ local function spawn_boss_units(surface)
|
||||
if pos then
|
||||
local biter = surface.create_entity({name = entry.name, position = pos})
|
||||
global.boss_biters[biter.unit_number] = biter
|
||||
add_boss_unit(biter, global.biter_evasion_health_increase_factor * 4 * difficulties_votes[global.difficulty_vote_index].amount_modifier, 0.55)
|
||||
add_boss_unit(biter, global.biter_evasion_health_increase_factor * 5 * difficulties_votes[global.difficulty_vote_index].amount_modifier, 0.55)
|
||||
biter_group.add_member(biter)
|
||||
end
|
||||
end
|
||||
@ -960,8 +960,8 @@ local function on_player_joined_game(event)
|
||||
|
||||
if not global.fish_defense_init_done then
|
||||
local map_gen_settings = {}
|
||||
map_gen_settings.water = 0.2
|
||||
map_gen_settings.terrain_segmentation = 3
|
||||
map_gen_settings.water = 0.15
|
||||
map_gen_settings.terrain_segmentation = 2.5
|
||||
map_gen_settings.cliff_settings = {cliff_elevation_interval = 16, cliff_elevation_0 = 16}
|
||||
map_gen_settings.autoplace_controls = {
|
||||
["coal"] = {frequency = 3, size = 2, richness = 1},
|
||||
@ -1078,6 +1078,7 @@ end
|
||||
local function chart_map()
|
||||
if not global.map_generation_complete then
|
||||
global.wave_grace_period = global.wave_grace_period + 180
|
||||
global.difficulty_poll_closing_timeout = global.difficulty_poll_closing_timeout + 180
|
||||
return
|
||||
end
|
||||
game.forces.player.chart(game.surfaces["fish_defender"], {{-512, -512},{768, 512}})
|
||||
|
@ -122,7 +122,7 @@ local function generate_spawn_area(surface, left_top)
|
||||
if left_top.x ~= -256 then return end
|
||||
if left_top.y ~= -256 then return end
|
||||
|
||||
local spawn_position_x = -76
|
||||
local spawn_position_x = -96
|
||||
|
||||
surface.create_entity({name = "electric-beam", position = {160, -96}, source = {160, -96}, target = {160,96}})
|
||||
|
||||
@ -149,13 +149,13 @@ local function generate_spawn_area(surface, left_top)
|
||||
end
|
||||
|
||||
local y = 80
|
||||
local ore_positions = {{x = -128, y = y},{x = -128, y = y * 0.5},{x = -128, y = 0},{x = -128, y = y * -0.5},{x = -128, y = y * -1}}
|
||||
local ore_positions = {{x = spawn_position_x - 52, y = y},{x = spawn_position_x - 52, y = y * 0.5},{x = spawn_position_x - 52, y = 0},{x = spawn_position_x - 52, y = y * -0.5},{x = spawn_position_x - 52, y = y * -1}}
|
||||
table.shuffle_table(ore_positions)
|
||||
map_functions.draw_smoothed_out_ore_circle(ore_positions[1], "copper-ore", surface, 15, 2500)
|
||||
map_functions.draw_smoothed_out_ore_circle(ore_positions[2], "iron-ore", surface, 15, 2500)
|
||||
map_functions.draw_smoothed_out_ore_circle(ore_positions[3], "coal", surface, 15, 1500)
|
||||
map_functions.draw_smoothed_out_ore_circle(ore_positions[4], "stone", surface, 15, 1500)
|
||||
map_functions.draw_noise_tile_circle({x = -96, y = 0}, "water", surface, 16)
|
||||
map_functions.draw_noise_tile_circle({x = spawn_position_x - 20, y = 0}, "water", surface, 16)
|
||||
map_functions.draw_oil_circle(ore_positions[5], "crude-oil", surface, 8, 200000)
|
||||
|
||||
local pos = surface.find_non_colliding_position("market",{spawn_position_x, 0}, 50, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user