You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2026-06-20 16:32:28 +02:00
biter_battles > 0.17 things
This commit is contained in:
+2
-1
@@ -1 +1,2 @@
|
||||
require "commands.misc"
|
||||
require "commands.misc"
|
||||
require "commands.decoratives"
|
||||
@@ -0,0 +1,14 @@
|
||||
function generate_decoratives_for_all_existing_chunks()
|
||||
local decorative_names = {}
|
||||
for k,v in pairs(game.decorative_prototypes) do
|
||||
if v.autoplace_specification then
|
||||
decorative_names[#decorative_names+1] = k
|
||||
end
|
||||
end
|
||||
|
||||
for _, surface in pairs(game.surfaces) do
|
||||
for chunk in surface.get_chunks() do
|
||||
surface.regenerate_decorative(decorative_names, {chunk})
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1295,7 +1295,8 @@ local function on_chunk_generated(event)
|
||||
for _, e in pairs(entities) do
|
||||
if e.type == "simple-entity" or e.type == "resource" or e.type == "tree" then e.destroy() end
|
||||
end
|
||||
surface.destroy_decoratives({{-10,-10},{10,10}})
|
||||
surface.destroy_decoratives({area = {{-10,-10},{10,10}}})
|
||||
|
||||
game.print("Spawn generation done!", { r=0.22, g=0.99, b=0.99})
|
||||
|
||||
global.terrain_init_done = true
|
||||
|
||||
@@ -9,7 +9,7 @@ require "maps.modules.dynamic_landfill"
|
||||
require "maps.modules.teleporting_worms"
|
||||
require "maps.modules.custom_death_messages"
|
||||
require "maps.modules.splice_double"
|
||||
require "maps.modules.spitters_spit_biters"
|
||||
--require "maps.modules.spitters_spit_biters"
|
||||
--require "maps.modules.biters_double_hp"
|
||||
|
||||
local event = require 'utils.event'
|
||||
@@ -18,7 +18,7 @@ local math_random = math.random
|
||||
local insert = table.insert
|
||||
local enable_start_grace_period = true
|
||||
local wave_interval = 1800 --interval between waves in ticks
|
||||
local biter_count_limit = 64 --maximum biters on the east side of the map, next wave will be delayed if the maximum has been reached
|
||||
local biter_count_limit = 256 --maximum biters on the east side of the map, next wave will be delayed if the maximum has been reached
|
||||
local boss_waves = {
|
||||
[50] = {{name = "big-biter", count = 3}},
|
||||
[100] = {{name = "behemoth-biter", count = 1}},
|
||||
|
||||
Reference in New Issue
Block a user