1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Move generic death message into print after timeout

This commit is contained in:
plague006 2019-02-23 10:54:36 -05:00
parent ec7d638228
commit 25a61256f0

View File

@ -37,6 +37,11 @@ local print_after_timeout =
if not player.valid then
return
end
if data.death then
game.print({'donator.death_message'}, Color.white)
end
game.print(data.message, player.chat_color)
end
)
@ -80,9 +85,8 @@ local function player_died(event)
end
local message = messages[random(#messages)]
game.print({'donator.death_message'}, Color.white)
message = concat({'*** ', message, ' ***'})
Task.set_timeout_in_ticks(30, print_after_timeout, {player = player, message = message})
Task.set_timeout_in_ticks(30, print_after_timeout, {player = player, message = message, death = true})
end
--- Returns the table of donators