Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion map_gen/maps/crash_site/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ local function do_evolution(entity, entity_name, entity_force)
local old = entity_force.evolution_factor
local extra = (1 - old) * factor
local new = old + extra
entity_force.evolution_factor = math.min(new,1)
if new < 1 then
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
Expand Down