mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] tele patch (#9209)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -1187,7 +1187,7 @@
|
||||
|
||||
var/atom/movable/item = src.get_active_hand()
|
||||
|
||||
if(!item)
|
||||
if(!item || istype(item, /obj/item/tk_grab))
|
||||
return FALSE
|
||||
|
||||
var/throw_range = item.throw_range
|
||||
|
||||
@@ -850,6 +850,13 @@ var/global/list/light_type_cache = list()
|
||||
return
|
||||
|
||||
to_chat(user, "You telekinetically remove the light [get_fitting_name()].")
|
||||
installed_light.status = status
|
||||
installed_light.forceMove(src.loc)
|
||||
var/obj/item/tk_grab/O = new(src)
|
||||
user.put_in_active_hand(O)
|
||||
O.host = user
|
||||
O.focus_object(installed_light)
|
||||
installed_light.update_icon()
|
||||
remove_bulb()
|
||||
|
||||
// break the light and make sparks if was on
|
||||
|
||||
Reference in New Issue
Block a user