mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-28 01:42:50 +00:00
Merge pull request #12535 from Very-Soft/findaresleever
Find Auto Resleever
This commit is contained in:
@@ -129,4 +129,32 @@
|
||||
forceMove(T)
|
||||
stop_following()
|
||||
else
|
||||
to_chat(src, "This ghost pod is not located in the game world.")
|
||||
to_chat(src, "This ghost pod is not located in the game world.")
|
||||
|
||||
/mob/observer/dead/verb/findautoresleever()
|
||||
set category = "Ghost"
|
||||
set name = "Find Auto Resleever"
|
||||
set desc = "Find a Auto Resleever"
|
||||
set popup_menu = FALSE
|
||||
|
||||
if(!istype(usr, /mob/observer/dead)) //Make sure they're an observer!
|
||||
return
|
||||
|
||||
var/list/ar = list()
|
||||
for(var/obj/machinery/transhuman/autoresleever/A in world)
|
||||
if(A.spawntype)
|
||||
continue
|
||||
else
|
||||
ar |= A
|
||||
|
||||
var/obj/machinery/transhuman/autoresleever/thisone = pick(ar)
|
||||
|
||||
if(!thisone)
|
||||
to_chat(src, "<span class='warning'>There appears to be no auto-resleevers available.</span>")
|
||||
return
|
||||
var/L = get_turf(thisone)
|
||||
if(!L)
|
||||
to_chat(src, "<span class='warning'>There appears to be something wrong with this auto-resleever, try again.</span>")
|
||||
return
|
||||
|
||||
forceMove(L)
|
||||
|
||||
Reference in New Issue
Block a user