[MIRROR] Removing an organ from a autosurgeon now correctly updates its overlays + 2 more bonus autosurgeon fixes [MDB IGNORE] (#18565)

* Removing an organ from a autosurgeon now correctly updates its overlays + 2 more bonus autosurgeon fixes (#72471)

Removing an organ from an auto-surgeon with a screwdriver didn't call
update_appearance() and thus it kept its overlay as if it was full.

Fixes single use autosurgeons not consuming uses when their implant is
removed, this was a bug introduced by #68379
Autosurgeons now actually tell you what organ was removed from them.

* Removing an organ from a autosurgeon now correctly updates its overlays + 2 more bonus autosurgeon fixes

Co-authored-by: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-01-07 08:28:06 -08:00
committed by GitHub
co-authored by NamelessFairy
parent f081efa89d
commit 65b6c059ff
+6 -1
View File
@@ -119,10 +119,15 @@
var/atom/drop_loc = user.drop_location()
for(var/atom/movable/stored_implant as anything in src)
stored_implant.forceMove(drop_loc)
to_chat(user, span_notice("You remove the [stored_organ] from [src]."))
stored_organ = null
to_chat(user, span_notice("You remove the [stored_organ] from [src]."))
screwtool.play_tool_sound(src)
if (uses)
uses--
if(!uses)
desc = "[initial(desc)] Looks like it's been used up."
update_appearance(UPDATE_ICON)
return TRUE
/obj/item/autosurgeon/medical_hud