Adds a check on messaging admins if an item is in nullspace. (#25895)

* this sucks this sucks so bad

* unused
This commit is contained in:
Luc
2024-06-12 13:17:01 -07:00
committed by GitHub
parent 69a29f2956
commit 922d7215bd
+7 -2
View File
@@ -187,8 +187,13 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
/obj/item/proc/alert_admins_on_destroy()
SIGNAL_HANDLER
var/turf/turf_loc = get_turf(src)
message_admins("[src] has been destroyed in [get_area(turf_loc)] at [ADMIN_COORDJMP(turf_loc)].")
log_game("[src] has been destroyed at ([turf_loc.x],[turf_loc.y],[turf_loc.z]) in the location [loc].")
if(turf_loc)
// guess it's actually just in nullspace. lol. lmao
message_admins("[src] has been destroyed in [get_area(turf_loc)] at [ADMIN_COORDJMP(turf_loc)].")
log_game("[src] has been destroyed at ([turf_loc.x],[turf_loc.y],[turf_loc.z]) in the location [loc].")
else
message_admins("[src] has been destroyed in nullspace.")
log_game("[src] has been destroyed in nullspace.")
/obj/item/proc/check_allowed_items(atom/target, not_inside, target_self)
if(((src in target) && !target_self) || (!isturf(target.loc) && !isturf(target) && not_inside))