mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
Convert fire alarms to use add_overlay() A good first test.
This commit is contained in:
@@ -824,7 +824,7 @@ FIRE ALARM
|
|||||||
alarms_hidden = TRUE
|
alarms_hidden = TRUE
|
||||||
|
|
||||||
/obj/machinery/firealarm/update_icon()
|
/obj/machinery/firealarm/update_icon()
|
||||||
overlays.Cut()
|
cut_overlays()
|
||||||
|
|
||||||
if(panel_open)
|
if(panel_open)
|
||||||
set_light(0)
|
set_light(0)
|
||||||
@@ -847,8 +847,7 @@ FIRE ALARM
|
|||||||
if("blue") set_light(l_range = 2, l_power = 0.5, l_color = "#1024A9")
|
if("blue") set_light(l_range = 2, l_power = 0.5, l_color = "#1024A9")
|
||||||
if("red") set_light(l_range = 4, l_power = 2, l_color = "#ff0000")
|
if("red") set_light(l_range = 4, l_power = 2, l_color = "#ff0000")
|
||||||
if("delta") set_light(l_range = 4, l_power = 2, l_color = "#FF6633")
|
if("delta") set_light(l_range = 4, l_power = 2, l_color = "#FF6633")
|
||||||
|
add_overlay("overlay_[seclevel]")
|
||||||
overlays += image('icons/obj/monitors.dmi', "overlay_[seclevel]")
|
|
||||||
|
|
||||||
/obj/machinery/firealarm/fire_act(datum/gas_mixture/air, temperature, volume)
|
/obj/machinery/firealarm/fire_act(datum/gas_mixture/air, temperature, volume)
|
||||||
if(detecting)
|
if(detecting)
|
||||||
|
|||||||
Reference in New Issue
Block a user