Magnetic gripper now works on light bulbs. (#22831)

* Update drone_items.dm

* Update code/modules/mob/living/silicon/robot/drone/drone_items.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Update code/modules/mob/living/silicon/robot/drone/drone_items.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/modules/mob/living/silicon/robot/drone/drone_items.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/modules/mob/living/silicon/robot/drone/drone_items.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
Fordoxia
2023-10-16 18:30:38 +01:00
committed by GitHub
parent 73eb774125
commit da7dfdb8a6

View File

@@ -33,7 +33,8 @@
/obj/item/circuitboard,
/obj/item/stack/tile/light,
/obj/item/stack/ore/bluespace_crystal,
/obj/item/assembly/igniter
/obj/item/assembly/igniter,
/obj/item/light
)
//Item currently being held.
@@ -146,6 +147,12 @@
cell_charger.charging.forceMove(src)
cell_charger.removecell()
else if(istype(target, /obj/machinery/light))
var/obj/machinery/light/light = target
var/obj/item/light/L = light.drop_light_tube()
L.forceMove(src)
user.visible_message("<span class='notice'>[user] removes the light from the fixture.</span>", "<span class='notice'>You dislodge the light from the fixture.</span>")
return TRUE
/obj/item/matter_decompiler