Skip to content

Commit

Permalink
[MIRROR] Fixes oversight with DROP_BRAIN (#2205)
Browse files Browse the repository at this point in the history
* Fixes oversight with DROP_BRAIN

* Update death.dm

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Bloop <[email protected]>
Co-authored-by: Iajret <[email protected]>
  • Loading branch information
4 people authored Mar 1, 2024
1 parent dc8614e commit a95888e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/death.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

for(var/obj/item/organ/organ as anything in organs)
if((drop_bitflags & DROP_BRAIN) && istype(organ, /obj/item/organ/internal/brain))
if(drop_bitflags & DROP_BODYPARTS && (check_zone(organ.zone) != BODY_ZONE_CHEST)) // NOVA EDIT CHANGE - sYNTH BRAINS - ORIGINAL: if(drop_bitflags & DROP_BODYPARTS)
if((drop_bitflags & DROP_BODYPARTS) && (check_zone(organ.zone) != BODY_ZONE_CHEST)) // chests can't drop
continue // the head will drop, so the brain should stay inside

organ.Remove(src)
Expand Down

0 comments on commit a95888e

Please sign in to comment.