update /obj/machinery/light_construct/attack_hand(..)

This commit is contained in:
Meghan-Rossi
2020-03-21 12:28:19 +00:00
parent 473668e292
commit d40e9732d3
+3 -1
View File
@@ -75,12 +75,14 @@ var/global/list/light_type_cache = list()
to_chat(user, "<span class='danger'>This casing doesn't support power cells for backup power.</span>")
/obj/machinery/light_construct/attack_hand(mob/user)
. = ..()
if(.)
return . // obj/machinery/attack_hand returns 1 if user can't use the machine
if(cell)
user.visible_message("[user] removes [cell] from [src]!","<span class='notice'>You remove [cell].</span>")
user.put_in_hands(cell)
cell.update_icon()
cell = null
add_fingerprint(user)
/obj/machinery/light_construct/attackby(obj/item/weapon/W as obj, mob/user as mob)
src.add_fingerprint(user)