mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Do not show a fish at > 0.901 evo
This commit is contained in:
parent
53fad1a75b
commit
52d4ec0b84
@ -39,7 +39,7 @@ local function get_evolution_percentage()
|
||||
end
|
||||
|
||||
local function get_alien_name(evolution_factor)
|
||||
local last_match
|
||||
local last_match = 'fish'
|
||||
for name, alien_threshold in pairs(button_sprites) do
|
||||
if evolution_factor == alien_threshold then
|
||||
return name
|
||||
@ -56,8 +56,7 @@ local function get_alien_name(evolution_factor)
|
||||
end
|
||||
end
|
||||
|
||||
-- shouldn't be reached but shouldn't crash either
|
||||
return 'fish'
|
||||
return last_match
|
||||
end
|
||||
|
||||
local function player_joined(event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user