Changes SM alerts to Engineering frequency

This commit is contained in:
Ravensdale
2015-04-16 07:01:11 -07:00
parent fdd041830a
commit a1dbfb69c1

View File

@@ -47,6 +47,7 @@
var/damage_archived = 0 var/damage_archived = 0
var/safe_alert = "Crystaline hyperstructure returning to safe operating levels." var/safe_alert = "Crystaline hyperstructure returning to safe operating levels."
var/safe_warned = 0 var/safe_warned = 0
var/public_alert = 0 //Stick to Engineering frequency except for big warnings when integrity bad
var/warning_point = 100 var/warning_point = 100
var/warning_alert = "Danger! Crystal hyperstructure instability!" var/warning_alert = "Danger! Crystal hyperstructure instability!"
var/emergency_point = 700 var/emergency_point = 700
@@ -88,7 +89,7 @@
/obj/machinery/power/supermatter/New() /obj/machinery/power/supermatter/New()
. = ..() . = ..()
radio = new (src) radio = new /obj/item/device/radio{channels=list("Engineering")}(src)
/obj/machinery/power/supermatter/Del() /obj/machinery/power/supermatter/Del()
@@ -141,7 +142,15 @@
else else
alert_msg = null alert_msg = null
if(alert_msg) if(alert_msg)
radio.autosay(alert_msg, "Supermatter Monitor", "Engineering")
//Public alerts
if((damage > emergency_point) && !public_alert)
radio.autosay("WARNING: SUPERMATTER CRYSTAL DELAMINATION IMMINENT!", "Supermatter Monitor")
public_alert = 1
else if(safe_warned && public_alert)
radio.autosay(alert_msg, "Supermatter Monitor") radio.autosay(alert_msg, "Supermatter Monitor")
public_alert = 0
/obj/machinery/power/supermatter/process() /obj/machinery/power/supermatter/process()