Ports TG emergency lights, adds special code Epsilon and Delta effects. (#16333)

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
S34N
2021-12-01 22:20:53 +01:00
committed by GitHub
co-authored by SabreML
parent 31b336da64
commit e72fda67b2
6 changed files with 180 additions and 46 deletions
+8 -5
View File
@@ -1,5 +1,6 @@
/area
var/fire = null
var/area_emergency_mode = FALSE // When true, fire alarms cannot unset emergency lighting. Not to be confused with emergency_mode var on light objects.
var/atmosalm = ATMOS_ALARM_NONE
var/poweralm = TRUE
var/report_alerts = TRUE // Should atmos alerts notify the AI/computers
@@ -345,21 +346,23 @@
for(var/alarm in firealarms)
var/obj/machinery/firealarm/F = alarm
F.update_fire_light(fire)
if(area_emergency_mode) //Fires are not legally allowed if the power is off
return
for(var/obj/machinery/light/L in src)
L.fire_mode = TRUE
L.update(TRUE, TRUE, FALSE)
/**
* unset the fire alarm visual affects in an area
*
* Updates the fire light on fire alarms in the area and sets all lights to emergency mode
*/
///unset the fire alarm visual affects in an area
/area/proc/unset_fire_alarm_effects()
fire = FALSE
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
for(var/alarm in firealarms)
var/obj/machinery/firealarm/F = alarm
F.update_fire_light(fire)
if(area_emergency_mode) //The lights stay red until the crisis is resolved
return
for(var/obj/machinery/light/L in src)
L.fire_mode = FALSE
L.update(TRUE, TRUE, FALSE)
/area/proc/updateicon()