mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 17:43:35 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user