mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user