mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-04-09 07:03:53 +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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local evolution = game.forces['enemy'].get_evolution_factor(surface)
|
local evolution = game.forces.enemy.get_evolution_factor(surface)
|
||||||
|
|
||||||
if relative_evolution then
|
if relative_evolution then
|
||||||
evolution = relative_evolution
|
evolution = relative_evolution
|
||||||
|
@ -142,7 +142,7 @@ local function unearthing_worm(surface, position, relative_evolution)
|
|||||||
if not position.y then
|
if not position.y then
|
||||||
return
|
return
|
||||||
end
|
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
|
if relative_evolution then
|
||||||
evolution_index = math.ceil(relative_evolution * 10)
|
evolution_index = math.ceil(relative_evolution * 10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user