[MIRROR] Added verbs/handling for removing and attaching your own robotic bodyparts.

This commit is contained in:
Chompstation Bot
2021-02-28 23:08:29 +00:00
parent 553c26bde2
commit 1aa9efb728
9 changed files with 293 additions and 19 deletions

View File

@@ -236,6 +236,7 @@
owner.organs |= src
for(var/obj/item/organ/organ in src)
organ.replaced(owner,src)
owner.refresh_modular_limb_verbs()
if(parent_organ)
parent = owner.organs_by_name[src.parent_organ]
@@ -1132,6 +1133,8 @@ Note that amputating the affected organ does in fact remove the infection from t
if(R.lifelike)
robotic = ORGAN_LIFELIKE
name = "[initial(name)]"
else if(R.modular_bodyparts == MODULAR_BODYPART_PROSTHETIC)
name = "prosthetic [initial(name)]"
else
name = "robotic [initial(name)]"
desc = "[R.desc] It looks like it was produced by [R.company]."
@@ -1163,7 +1166,7 @@ Note that amputating the affected organ does in fact remove the infection from t
while(null in owner.internal_organs)
owner.internal_organs -= null
owner.refresh_modular_limb_verbs()
return 1
/obj/item/organ/external/proc/mutate()
@@ -1264,6 +1267,7 @@ Note that amputating the affected organ does in fact remove the infection from t
qdel(spark_system)
qdel(src)
victim.refresh_modular_limb_verbs()
victim.update_icons_body()
/obj/item/organ/external/proc/disfigure(var/type = "brute")