Fixes Ghostsight for realsies

This commit is contained in:
ZomgPonies
2015-03-01 19:10:25 -05:00
parent 1a72f19777
commit 86e300bc67
5 changed files with 76 additions and 18 deletions
+13
View File
@@ -14,13 +14,26 @@
var/obj/effect/blob/core/blob_core = null // The blob overmind's core
var/blob_points = 0
var/max_blob_points = 100
var/ghostimage = null
/mob/camera/blob/New()
var/new_name = "[initial(name)] ([rand(1, 999)])"
name = new_name
real_name = new_name
ghostimage = image(src.icon,src,src.icon_state)
ghost_darkness_images |= ghostimage //so ghosts can see the blob cursor when they disable darkness
updateallghostimages()
..()
/mob/camera/blob/Destroy()
if (ghostimage)
ghost_darkness_images -= ghostimage
qdel(ghostimage)
ghostimage = null;
updateallghostimages()
/mob/camera/blob/Login()
..()
sync_mind()