Clerical Powercreep (#13791)

This commit is contained in:
Benedict
2022-05-09 07:07:19 -04:00
committed by GitHub
parent d1f8d81830
commit 131651432d
4 changed files with 23 additions and 3 deletions

View File

@@ -18,14 +18,14 @@
if(drive)
add_overlay("paperscanner-drive")
/obj/item/paper_scanner/AltClick(mob/living/carbon/user)
/obj/item/paper_scanner/AltClick(mob/living/user)
if(!drive)
to_chat(user, SPAN_WARNING("\The [src] doesn't have a drive installed."))
return
if(!istype(user))
to_chat(user, SPAN_WARNING("You're too simple to work \the [src]."))
return
if(user.l_hand == src || user.r_hand == src)
if(user.l_hand == src || user.r_hand == src || issilicon(user))
to_chat(user, SPAN_NOTICE("You eject \the [drive]."))
user.put_in_hands(drive)
drive = null