1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-09 13:37:02 +02:00

spooky_forest > spawn safe zone

This commit is contained in:
MewMew 2019-01-04 09:06:26 +01:00
parent 30421c1e2e
commit cd2e99ec98
4 changed files with 8 additions and 4 deletions

View File

@ -27,18 +27,18 @@ require "score"
--require "maps.biter_battles"
--require "maps.cave_miner"
--require "maps.labyrinth"
--require "maps.spooky_forest"
require "maps.spooky_forest"
--require "maps.nightfall"
--require "maps.atoll"
--require "maps.tank_battles"
--require "maps.spiral_troopers"
require "maps.fish_defender"
--require "maps.fish_defender"
--require "maps.crossing"
--require "maps.spaghettorio"
--require "maps.deep_jungle"
--require "maps.lost_desert"
--require "maps.empty_map"
--require "maps.custom_start"
--require "maps.nightfall"
-----------------------------
local Event = require 'utils.event'

View File

@ -186,7 +186,7 @@ local function get_entity(position)
if math_random(1, 12) == 1 then
local noise_spawners = get_noise("spawners", position)
if noise_spawners > 0.25 then
if noise_spawners > 0.25 and position.x^2 + position.y^2 > 3000 then
entity_name = "biter-spawner"
if math_random(1,5) == 1 then
entity_name = "spitter-spawner"

View File

@ -1,3 +1,6 @@
0.08
spawn is now biter free
0.07
added randomly breaking trees
added randomly attacking biters

View File

@ -453,6 +453,7 @@ local function on_player_mined_entity(event)
end
local function on_built_entity(event)
if not event.created_entity.valid then return end
if event.created_entity.type == "entity-ghost" then return end
local player = game.players[event.player_index]
init_player_table(player)