mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-06 00:23:49 +02:00
junkyard update
This commit is contained in:
parent
d8c4727b8c
commit
01786d531d
@ -14,7 +14,7 @@ require "score"
|
||||
require "on_tick_schedule"
|
||||
|
||||
---- enable modules here ----
|
||||
require "maps.tools.cheat_mode"
|
||||
--require "maps.tools.cheat_mode"
|
||||
--require "maps.modules.hunger"
|
||||
--require "maps.modules.area_unlocked_on_rotated_entity"
|
||||
--require "maps.modules.fish_respawner"
|
||||
|
@ -38,18 +38,18 @@ local tile_replacements = {
|
||||
|
||||
local entity_replacements = {
|
||||
["tree-01"] = "dead-grey-trunk",
|
||||
["tree-02"] = "tree-08-brown",
|
||||
["tree-02"] = "tree-06-brown",
|
||||
["tree-03"] = "dead-grey-trunk",
|
||||
["tree-04"] = "dry-hairy-tree",
|
||||
["tree-05"] = "dead-grey-trunk",
|
||||
["tree-06"] = "tree-06-brown",
|
||||
["tree-07"] = "dry-hairy-tree",
|
||||
["tree-08"] = "tree-08-brown",
|
||||
["tree-08"] = "dead-grey-trunk",
|
||||
["tree-09"] = "tree-06-brown",
|
||||
["tree-02-red"] = "dry-tree",
|
||||
--["tree-06-brown"] = "dirt",
|
||||
--["tree-08-brown"] = "dirt",
|
||||
["tree-09-brown"] = "tree-08-brown",
|
||||
["tree-08-brown"] = "tree-06-brown",
|
||||
["tree-09-brown"] = "tree-06-brown",
|
||||
["tree-09-red"] = "tree-06-brown",
|
||||
["iron-ore"] = "mineable-wreckage",
|
||||
["copper-ore"] = "mineable-wreckage",
|
||||
@ -290,7 +290,7 @@ local function on_chunk_generated(event)
|
||||
|
||||
if global.spawn_generated then return end
|
||||
if left_top.x < 96 then return end
|
||||
map_functions.draw_rainbow_patch({x = 0, y = 0}, surface, 16, 2000)
|
||||
map_functions.draw_rainbow_patch_v2({x = 0, y = 0}, surface, 14, 1500)
|
||||
for _, wreck in pairs (surface.find_entities_filtered({area = {{-10, -10},{10, 10}}, name = "mineable-wreckage"})) do
|
||||
local distance_to_center = math.sqrt(wreck.position.x^2 + wreck.position.y^2)
|
||||
if distance_to_center < 8 then wreck.destroy() end
|
||||
|
@ -49,8 +49,8 @@ f.draw_rainbow_patch_v2 = function(position, surface, radius, richness)
|
||||
if not radius then return end
|
||||
if not richness then return end
|
||||
local modifier_1 = math_random(2,10)
|
||||
local modifier_2 = math_random(50,150) * 0.0002
|
||||
local modifier_3 = math_random(25,100) * 0.0015
|
||||
local modifier_2 = math_random(100,200) * 0.0002
|
||||
local modifier_3 = math_random(100,200) * 0.0015
|
||||
local modifier_4 = math_random(15,30) * 0.01
|
||||
local seed = game.surfaces[1].map_gen_settings.seed
|
||||
local ores = {"stone", "coal", "iron-ore", "copper-ore"}
|
||||
|
Loading…
Reference in New Issue
Block a user