ok right branch this time (#19110)

This commit is contained in:
Contrabang
2022-09-24 07:53:13 -04:00
committed by GitHub
parent 73b27768f3
commit 0efd7c6c50
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -105,6 +105,7 @@
holder = new /obj/item/assembly_holder(get_turf(src))
if(holder.attach(A, src, user))
to_chat(user, "<span class='notice'>You attach [A] to [src]!</span>")
user.put_in_active_hand(holder)
return TRUE
return FALSE
+4 -1
View File
@@ -179,12 +179,15 @@
var/turf/T = get_turf(src)
if(!T)
return FALSE
user.unEquip(src, TRUE, TRUE)
if(a_left)
a_left.holder = null
a_left.forceMove(T)
if(a_right)
user.put_in_active_hand(a_left)
if(a_right) // Right object is the secondary item, hence put in inactive hand
a_right.holder = null
a_right.forceMove(T)
user.put_in_inactive_hand(a_right)
qdel(src)