Fixes #2978
Fixes #3084
This commit is contained in:
skull132
2017-07-18 12:22:52 +03:00
committed by GitHub
parent b39c6b61c7
commit 97817469d2
2 changed files with 11 additions and 25 deletions
+3 -16
View File
@@ -79,7 +79,8 @@
set category = "Object"
set src in view(usr, 1)
set name = "Print Data"
if(usr.stat || !(istype(usr,/mob/living/carbon/human)))
if(use_check(usr))
usr << "No."
return
@@ -159,21 +160,7 @@
P.info = "<tt>[scan_data]</tt>"
P.icon_state = "paper_words"
if(istype(usr,/mob/living/carbon))
// place the item in the usr's hand if possible
if(!usr.r_hand)
P.loc = usr
usr.r_hand = P
P.layer = 20
else if(!usr.l_hand)
P.loc = usr
usr.l_hand = P
P.layer = 20
if (ismob(src.loc))
var/mob/M = src.loc
M.update_inv_l_hand()
M.update_inv_r_hand()
usr.put_in_hands(P)
/obj/item/weapon/autopsy_scanner/attack(mob/living/carbon/human/M as mob, mob/living/carbon/user as mob)
if(!istype(M))