Adds a "follow" button to things pointed to by ghosts (#14981)

* Adds a "follow" button to things pointed to by ghosts

* Do not show the button if ghost is visible to the living
This commit is contained in:
dearmochi
2020-11-27 10:18:42 +00:00
committed by GitHub
parent a7cb403bef
commit 0d9a73f018
+6 -3
View File
@@ -739,9 +739,12 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
//overriden here and in /mob/living for different point span classes and sanity checks
/mob/dead/observer/pointed(atom/A as mob|obj|turf in view())
if(!..())
return 0
usr.visible_message("<span class='deadsay'><b>[src]</b> points to [A].</span>")
return 1
return FALSE
var/follow_link
if(invisibility) // Only show the button if the ghost is not visible to the living
follow_link = " ([ghost_follow_link(A, src)])"
usr.visible_message("<span class='deadsay'><b>[src]</b> points to [A][follow_link].</span>")
return TRUE
/mob/dead/observer/proc/incarnate_ghost()
if(!client)