mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Updated errors
This commit is contained in:
parent
4e466c8131
commit
b74908f64b
@ -280,8 +280,9 @@ local function do_evolution(entity, entity_name, entity_force)
|
||||
local extra = (1 - old) * factor
|
||||
local new = old + extra
|
||||
if new < 1 then
|
||||
entity_force.evolution_factor = math.min(new, 1)
|
||||
entity.surface.create_entity{name="flying-text", position = {entity.position.x - 1, entity.position.y}, text = "+" .. round(extra*100,2) .. "% evo", color = Color.plum}
|
||||
entity_force.evolution_factor = new
|
||||
local position = entity.position
|
||||
entity.surface.create_entity{name="flying-text", position = {position.x - 1, position.y}, text = "+" .. round(extra*100,2) .. "% evo", color = Color.plum}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user