Non-shielded areas now get a pulsating green overlay when a radiation storm is active.
This commit is contained in:
Geeves
2021-03-22 00:10:13 +02:00
committed by GitHub
parent 83e083418b
commit be2eeae805
4 changed files with 26 additions and 4 deletions
+9 -3
View File
@@ -11,6 +11,7 @@
var/atmosalm = 0
var/poweralm = 1
var/party = null
var/radiation_active = null
level = null
name = "Unknown"
icon = 'icons/turf/areas.dmi'
@@ -218,10 +219,15 @@
#define DO_PARTY(COLOR) animate(color = COLOR, time = 0.5 SECONDS, easing = QUAD_EASING)
/area/update_icon()
if ((fire || eject || party) && (!requires_power||power_environ) && !istype(src, /area/space)) //If it doesn't require power, can still activate this proc.
if(fire && !eject && !party) // FIRE
color = "#ff9292"
if ((fire || eject || party || radiation_active) && (!requires_power||power_environ) && !istype(src, /area/space)) //If it doesn't require power, can still activate this proc.
if(radiation_active)
color = "#30e63f"
animate(src) // stop any current animations.
animate(src, color = "#2ea138", time = 1 SECOND, loop = -1, easing = SINE_EASING)
animate(color ="#30e63f", time = 1 SECOND, easing = SINE_EASING)
else if(fire && !eject && !party) // FIRE
color = "#ff9292"
animate(src)
animate(src, color = "#ffa5b2", time = 1 SECOND, loop = -1, easing = SINE_EASING)
animate(color = "#ff9292", time = 1 SECOND, easing = SINE_EASING)
else if(!fire && eject && !party) // EJECT
+10
View File
@@ -15,6 +15,11 @@
/datum/event/radiation_storm/start()
make_maint_all_access()
for(var/area/A in all_areas)
if(A.flags & RAD_SHIELDED)
continue
A.radiation_active = TRUE
A.update_icon()
/datum/event/radiation_storm/tick()
if(activeFor == enterBelt)
@@ -40,6 +45,11 @@
if(faked)
return
revoke_maint_all_access()
for(var/area/A in all_areas)
if(A.flags & RAD_SHIELDED)
continue
A.radiation_active = null
A.update_icon()
/datum/event/radiation_storm/syndicate/radiate()
return
+1 -1
View File
@@ -89,4 +89,4 @@
/mob/living/proc/apply_radiation(var/rads)
total_radiation += rads
if (total_radiation < 0)
total_radiation = 0
total_radiation = 0
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- rscadd: "Non-shielded areas now get a pulsating green overlay when a radiation storm is active."