mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 20:11:56 +00:00
Sourced from #59118 and a cursed project I'll pr later, This pr contains a lot of harddel fixes for stuff that pops up after a player interacts with something. I'm not gonna list them all here because there's something like 60 130, check the commit log if you're curious Oh and I moved ref tracking screaming to a separate define, and made some optimizations to the thing in general. I think that's it, this pr is a bit of a frankenstine
19 lines
406 B
Plaintext
19 lines
406 B
Plaintext
/mob/Logout()
|
|
SEND_SIGNAL(src, COMSIG_MOB_LOGOUT)
|
|
log_message("[key_name(src)] is no longer owning mob [src]([src.type])", LOG_OWNERSHIP)
|
|
SStgui.on_logout(src)
|
|
unset_machine()
|
|
remove_from_player_list()
|
|
clear_client_in_contents()
|
|
..()
|
|
|
|
if(loc)
|
|
loc.on_log(FALSE)
|
|
|
|
if(client)
|
|
for(var/foo in client.player_details.post_logout_callbacks)
|
|
var/datum/callback/CB = foo
|
|
CB.Invoke()
|
|
|
|
return TRUE
|