Glow In the dark 'borgo eyes. (#8641)

This commit is contained in:
Chada-1
2020-04-16 18:14:53 -03:00
committed by GitHub
parent ec45b754f2
commit 45e17440e4
3 changed files with 52 additions and 4 deletions
+10 -3
View File
@@ -822,13 +822,20 @@
return FALSE
/mob/living/silicon/robot/updateicon()
cut_overlays()
overlays.Cut() // The new way the overlays are applied requires this overlays.Cut difference to remove
// correctly
//The below lines up to the panels are how the 'borgs get their overlays now. It's made cleaner
// via the vars below.
var/overlay_help = image(icon,"eyes-[module_sprites[icontype]]-help", EFFECTS_ABOVE_LIGHTING_LAYER)
var/overlay_harm = image(icon,"eyes-[module_sprites[icontype]]-harm", EFFECTS_ABOVE_LIGHTING_LAYER)
if(stat == CONSCIOUS)
if(a_intent == I_HELP)
add_overlay("eyes-[module_sprites[icontype]]-help")
overlays += overlay_help
else
add_overlay("eyes-[module_sprites[icontype]]-harm")
overlays += overlay_harm
if(opened)
var/panelprefix = custom_sprite ? src.ckey : "ov"