Augmentation uses replace_limb instead of manually doing the same (#39595)

This commit is contained in:
XDTM
2018-08-08 12:42:17 -04:00
committed by Emmett Gaines
parent 1d1fdda4c8
commit 3a32240a9e
+1 -2
View File
@@ -57,8 +57,7 @@
tool.cut_overlays()
tool = tool.contents[1]
if(istype(tool) && user.temporarilyRemoveItemFromInventory(tool))
L.drop_limb(TRUE) //The limb is augmented, not directly replaced, so keep the internal organs
tool.attach_limb(target)
tool.replace_limb(target)
user.visible_message("[user] successfully augments [target]'s [parse_zone(target_zone)]!", "<span class='notice'>You successfully augment [target]'s [parse_zone(target_zone)].</span>")
add_logs(user, target, "augmented", addition="by giving him new [parse_zone(target_zone)] INTENT: [uppertext(user.a_intent)]")
else