This commit is contained in:
vm-silicons
2025-12-19 22:17:36 -08:00
parent ea99b708a2
commit 2b4211c1d9
8 changed files with 9 additions and 9 deletions
@@ -308,7 +308,7 @@
*/
/obj/item/modular_computer/proc/alert_call(datum/computer_file/program/caller1, alerttext, sound = 'sound/machines/twobeep_high.ogg')
if(!caller || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
if(!caller1 || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
return
playsound(src, sound, 50, TRUE)
visible_message(span_notice("The [src] displays a [caller1.filedesc] notification: [alerttext]"))
@@ -54,7 +54,7 @@
ui_interact(user)
/obj/item/modular_computer/processor/alert_call(datum/computer_file/program/caller1, alerttext)
if(!caller || !caller1.alert_able || caller1.alert_silenced || !alerttext)
if(!caller1 || !caller1.alert_able || caller1.alert_silenced || !alerttext)
return
playsound(src, 'sound/machines/twobeep_high.ogg', 50, TRUE)
machinery_computer.visible_message(span_notice("The [src] displays a [caller1.filedesc] notification: [alerttext]"))
@@ -226,7 +226,7 @@
return TRUE
/obj/item/modular_computer/tablet/integrated/alert_call(datum/computer_file/program/caller1, alerttext, sound = 'sound/machines/twobeep_high.ogg')
if(!caller || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
if(!caller1 || !caller1.alert_able || caller1.alert_silenced || !alerttext) //Yeah, we're checking alert_able. No, you don't get to make alerts that the user can't silence.
return
borgo.playsound_local(src, sound, 50, TRUE)
to_chat(borgo, span_notice("The [src] displays a [caller1.filedesc] notification: [alerttext]"))