various fixes (#6252)

see commits

fixes stuff in maintainer bug triage

---------

Co-authored-by: silicons <no@you.cat>
This commit is contained in:
silicons
2024-01-06 12:27:26 -07:00
committed by GitHub
co-authored by silicons
parent 0eda4b7607
commit e5c9de9b6c
50 changed files with 213 additions and 338 deletions
+3 -3
View File
@@ -201,7 +201,7 @@
removable_objects |= I
if(removable_objects.len)
var/obj/item/I = pick(removable_objects)
I.loc = get_turf(user) //just in case something was embedded that is not an item
I.forceMove(get_turf(user)) //just in case something was embedded that is not an item
if(istype(I))
user.put_in_hands(I)
user.visible_message("<span class='danger'>\The [user] rips \the [I] out of \the [src]!</span>")
@@ -233,7 +233,7 @@
if(istype(W,/obj/item/surgical/hemostat))
if(contents.len)
var/obj/item/removing = pick(contents)
removing.loc = get_turf(user.loc)
removing.forceMove(get_turf(user.loc))
user.put_in_hands(removing)
user.visible_message("<span class='danger'><b>[user]</b> extracts [removing] from [src] with [W]!</span>")
else
@@ -537,7 +537,7 @@
// remove embedded objects and drop them on the floor
for(var/obj/implanted_object in implants)
if(!istype(implanted_object,/obj/item/implant) && !istype(implanted_object,/obj/item/nif)) // We don't want to remove REAL implants. Just shrapnel etc.
implanted_object.loc = get_turf(src)
implanted_object.forceMove(get_turf(src))
implants -= implanted_object
if(owner && !ignore_prosthetic_prefs)