1
0
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:
hanakocz 2024-09-30 23:53:53 +02:00 committed by Gerkiz
parent ec5dc174b1
commit 3a96bf59f0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)