mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 03:32:00 +00:00
* Fixes a bunch of harddels that are sourced from player action * Mirror! Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Funce <funce.973@gmail.com>
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
|