Converts Morph Spawn and Maint Pred events to use ghostpods

This commit is contained in:
Chompstation Bot
2021-01-27 02:25:00 +00:00
parent e3a5367009
commit be8d010ff9
8 changed files with 187 additions and 62 deletions
+28 -1
View File
@@ -73,4 +73,31 @@
record.last_notification = world.time
to_chat(src, "<span class='notice'>New notification has been sent.</span>")
else
to_chat(src, "<span class='warning'>No mind record found!</span>")
to_chat(src, "<span class='warning'>No mind record found!</span>")
/mob/observer/dead/verb/findghostpod() //Moves the ghost instead of just changing the ghosts's eye -Nodrak
set category = "Ghost"
set name = "Find Ghost Pod"
set desc = "Find an active ghost pod"
set popup_menu = FALSE
if(!istype(usr, /mob/observer/dead)) //Make sure they're an observer!
return
var/input = input(usr, "Select a ghost pod:", "Ghost Jump") as null|anything in observe_list_format(active_ghost_pods)
if(!input)
to_chat(src, "No active ghost pods detected.")
return
var/target = observe_list_format(active_ghost_pods)[input]
if (!target)//Make sure we actually have a target
return
else
var/obj/O = target //Destination mob
var/turf/T = get_turf(O) //Turf of the destination mob
if(T && isturf(T)) //Make sure the turf exists, then move the source to that destination.
forceMove(T)
stop_following()
else
to_chat(src, "This ghost pod is not located in the game world.")