Removes BoH retrieving mechanic (#46773)

This commit is contained in:
nicbn
2019-10-03 02:36:26 -07:00
committed by Rob Bailey
parent f95af429d6
commit 4ceb05ae80
3 changed files with 3 additions and 47 deletions
+3 -33
View File
@@ -20,47 +20,17 @@
/obj/singularity/boh_tear/Initialize()
. = ..()
old_loc = loc
addtimer(CALLBACK(src, /atom/movable.proc/moveToNullspace), 5 SECONDS) // vanishes after 5 seconds
QDEL_IN(src, 10 MINUTES)
/// Retrieve all the items consumed
/obj/singularity/boh_tear/proc/retrieve_consumed_items()
for(var/atom/movable/content in contents)
content.forceMove(old_loc)
if(ismob(content))
var/mob/M = content
if(!M.mind)
continue
for(var/mob/dead/observer/ghost in ghosts)
if(ghost.mind == M.mind)
ghosts -= ghost
ghost.can_reenter_corpse = TRUE
ghost.reenter_corpse()
break
qdel(src)
QDEL_IN(src, 5 SECONDS) // vanishes after 5 seconds
/obj/singularity/boh_tear/process()
eat()
/obj/singularity/boh_tear/consume(atom/A)
if(isturf(A))
A.singularity_act()
return
var/atom/movable/AM = A
if(!istype(AM))
return
if(isliving(AM))
var/mob/living/M = AM
var/turf/T = get_turf(src)
investigate_log("([key_name(A)]) has been consumed by the BoH tear at [AREACOORD(T)].", INVESTIGATE_SINGULO)
M.ghostize(FALSE)
else if(!isobj(AM))
return
AM.forceMove(src)
A.singularity_act(current_size, src)
/obj/singularity/boh_tear/admin_investigate_setup()
var/turf/T = get_turf(src)
message_admins("A BoH tear has been created at [ADMIN_VERBOSEJMP(T)]. [ADMIN_RETRIEVE_BOH_ITEMS(src)]")
message_admins("A BoH tear has been created at [ADMIN_VERBOSEJMP(T)].")
investigate_log("was created at [AREACOORD(T)].", INVESTIGATE_SINGULO)
/obj/singularity/boh_tear/attack_tk(mob/living/user)