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

Added sound for new reports

Admins now get a sound when a new report is created. Useful for admins that doesn't have Factorio as active window.

Currently set the sound_path as utility/tutorial_notice
This commit is contained in:
SimonFlapse 2018-11-11 04:56:50 +01:00
parent 2755cd510f
commit d0b018b1b2

View File

@ -89,6 +89,8 @@ function Module.report(reporting_player, reported_player, message)
local notified = false
for _,p in pairs(game.players) do
if p.admin and p.connected then
p.play_sound{path='utility/tutorial_notice', volume_modifier = 1}
--p.print("Did you hear that too? " .. tostring(game.is_valid_sound_path('utility/wire_connect_pole'))) --Debugging the sound_path
Module.show_reports(p)
if p.afk_time < 3600 then notified = true end
end