mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
You can no longer reattach limbs when parent limb is not there. (#22838)
Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
co-authored by
adrermail@gmail.com <adrermail@gmail.com>
parent
090ad59cbc
commit
616b4ab1df
@@ -108,6 +108,9 @@
|
||||
if(isnull(organ_data))
|
||||
to_chat(user, "<span class='warning'>[target.dna.species] don't have the anatomy for [E.name]!</span>")
|
||||
return SURGERY_BEGINSTEP_ABORT
|
||||
if(!target.bodyparts_by_name[E.parent_organ])
|
||||
to_chat(user, "<span class='warning'>[target] doesn't have a [parse_zone(E.parent_organ)] to attach the [E.name] to!</span>")
|
||||
return SURGERY_BEGINSTEP_ABORT
|
||||
if(length(E.search_contents_for(/obj/item/organ/internal/brain)) && target.get_int_organ(/obj/item/organ/internal/brain))
|
||||
to_chat(user, "<span class='warning'>Both [target] and [E.name] contain a brain, and [target] can't have two brains!</span>")
|
||||
return SURGERY_BEGINSTEP_ABORT
|
||||
|
||||
Reference in New Issue
Block a user