mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
Fixed telekinesis putting beaker in hand when swapped (#26130)
* fixes beaker telekinesis * removed unneeded spacing * commenting * user to usr
This commit is contained in:
@@ -251,8 +251,11 @@
|
||||
return
|
||||
I.forceMove(src)
|
||||
if(beaker)
|
||||
user.put_in_hands(beaker)
|
||||
to_chat(user, "<span class='notice'>You swap [I] with [beaker].</span>")
|
||||
to_chat(usr, "<span class='notice'>You swap [I] with [beaker].</span>")
|
||||
if(Adjacent(usr) && !issilicon(usr)) //Prevents telekinesis from putting in hand
|
||||
user.put_in_hands(beaker)
|
||||
else
|
||||
beaker.forceMove(loc)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You set [I] on the machine.</span>")
|
||||
beaker = I
|
||||
|
||||
@@ -125,8 +125,11 @@
|
||||
return
|
||||
I.forceMove(src)
|
||||
if(beaker)
|
||||
user.put_in_hands(beaker)
|
||||
to_chat(user, "<span class='notice'>You swap [I] with [beaker] inside.</span>")
|
||||
to_chat(usr, "<span class='notice'>You swap [I] with [beaker] inside.</span>")
|
||||
if(Adjacent(usr) && !issilicon(usr)) //Prevents telekinesis from putting in hand
|
||||
user.put_in_hands(beaker)
|
||||
else
|
||||
beaker.forceMove(loc)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You add [I] to the machine.</span>")
|
||||
beaker = I
|
||||
|
||||
Reference in New Issue
Block a user