fixes a few issues with derobotizing

This commit is contained in:
Seris02
2023-02-21 11:44:55 +08:00
parent 14a10960b7
commit b267325adf
2 changed files with 23 additions and 0 deletions
+2
View File
@@ -1155,6 +1155,8 @@ Note that amputating the affected organ does in fact remove the infection from t
/obj/item/organ/external/derobotize(var/restore_organs = TRUE)
. = ..()
if (!.) return
var/obj/item/organ/external/parent = owner?.organs_by_name[parent_organ]
if (parent && parent.robotic) return FALSE
var/datum/robolimb/R = all_robolimbs[model]
if (R)
brute_mod /= R.robo_brute_mod