mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[MIRROR] Dunking handle_atom_del() in the trash bin. [MDB IGNORE] (#23183)
* Dunking handle_atom_del() in the trash bin. * Update _box_magazine.dm * Modular paths --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
var/datum/worn_feature_offset/worn_face_offset
|
||||
|
||||
/obj/item/bodypart/head/Destroy()
|
||||
QDEL_NULL(brainmob) //order is sensitive, see warning in handle_atom_del() below
|
||||
QDEL_NULL(brainmob) //order is sensitive, see warning in Exited() below
|
||||
QDEL_NULL(brain)
|
||||
QDEL_NULL(eyes)
|
||||
QDEL_NULL(ears)
|
||||
@@ -106,21 +106,21 @@
|
||||
QDEL_NULL(worn_face_offset)
|
||||
return ..()
|
||||
|
||||
/obj/item/bodypart/head/handle_atom_del(atom/head_atom)
|
||||
if(head_atom == brain)
|
||||
/obj/item/bodypart/head/Exited(atom/movable/gone, direction)
|
||||
if(gone == brain)
|
||||
brain = null
|
||||
update_icon_dropped()
|
||||
if(!QDELETED(brainmob)) //this shouldn't happen without badminnery.
|
||||
message_admins("Brainmob: ([ADMIN_LOOKUPFLW(brainmob)]) was left stranded in [src] at [ADMIN_VERBOSEJMP(src)] without a brain!")
|
||||
brainmob.log_message(", brainmob, was left stranded in [src] without a brain", LOG_GAME)
|
||||
if(head_atom == brainmob)
|
||||
if(gone == brainmob)
|
||||
brainmob = null
|
||||
if(head_atom == eyes)
|
||||
if(gone == eyes)
|
||||
eyes = null
|
||||
update_icon_dropped()
|
||||
if(head_atom == ears)
|
||||
if(gone == ears)
|
||||
ears = null
|
||||
if(head_atom == tongue)
|
||||
if(gone == tongue)
|
||||
tongue = null
|
||||
return ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user