Borgs lose eye lights when power cell is destroyed or removed. Tested locally, seems to be working.

This commit is contained in:
GarrusVakarian
2014-12-01 21:32:44 +01:00
parent 602edd992a
commit fd4f299046
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@
/datum/robot_component/cell/destroy() /datum/robot_component/cell/destroy()
..() ..()
owner.cell = null owner.cell = null
overlays -= "eyes" owner.updateicon()
/datum/robot_component/radio /datum/robot_component/radio
name = "radio" name = "radio"

View File

@@ -1090,7 +1090,7 @@
/mob/living/silicon/robot/proc/updateicon() /mob/living/silicon/robot/proc/updateicon()
overlays.Cut() overlays.Cut()
if(stat == 0) if(stat == 0 && cell != null)
overlays += image(icon,"eyes-[icon_state]",LIGHTING_LAYER+1) overlays += image(icon,"eyes-[icon_state]",LIGHTING_LAYER+1)
if(opened) if(opened)