mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-03-03 14:42:27 +02:00
Drop debug message and adjust OE logic to map setting.
This commit is contained in:
parent
8ff97a117a
commit
b9eb9ce043
@ -50,7 +50,7 @@ function OarcModifyEnemyGroup(group)
|
||||
|
||||
local distance = CHUNK_SIZE*3
|
||||
if (group.command.type == defines.command.build_base) then
|
||||
distance = CHUNK_SIZE*7 --game.map_settings.enemy_expansion.max_expansion_distance
|
||||
distance = CHUNK_SIZE*(game.map_settings.enemy_expansion.max_expansion_distance)
|
||||
end
|
||||
|
||||
-- Find some enemies near the attack point.
|
||||
|
@ -71,8 +71,6 @@ function DowngradeResourcesDistanceBasedOnChunkGenerate(surface, chunkArea)
|
||||
local modifier = (distance / (global.ocfg.spawn_config.safe_area.danger_radius*2))^2
|
||||
if modifier > 1 then modifier = 1 end
|
||||
|
||||
SendBroadcastMsg("Modifier is " .. modifier)
|
||||
|
||||
for key, entity in pairs(surface.find_entities_filtered{area=chunkArea, type="resource"}) do
|
||||
if entity.valid and entity and entity.position and entity.amount then
|
||||
local new_amount = math.ceil(entity.amount * modifier)
|
||||
|
Loading…
x
Reference in New Issue
Block a user