mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-27 21:38:54 +02:00
forces better format
This commit is contained in:
parent
ec5dc174b1
commit
3a96bf59f0
@ -92,7 +92,7 @@ local function unearthing_biters(surface, position, amount, relative_evolution)
|
||||
return
|
||||
end
|
||||
|
||||
local evolution = game.forces['enemy'].get_evolution_factor(surface)
|
||||
local evolution = game.forces.enemy.get_evolution_factor(surface)
|
||||
|
||||
if relative_evolution then
|
||||
evolution = relative_evolution
|
||||
|
@ -142,7 +142,7 @@ local function unearthing_worm(surface, position, relative_evolution)
|
||||
if not position.y then
|
||||
return
|
||||
end
|
||||
local evolution_index = math.ceil(game.forces['enemy'].get_evolution_factor(surface) * 10)
|
||||
local evolution_index = math.ceil(game.forces.enemy.get_evolution_factor(surface) * 10)
|
||||
|
||||
if relative_evolution then
|
||||
evolution_index = math.ceil(relative_evolution * 10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user