guest pass cant be used on personal lockers (#22045)

This commit is contained in:
Burzah
2023-09-01 21:49:03 +01:00
committed by GitHub
parent 3dd1fc7b19
commit 20302523d9
@@ -43,6 +43,10 @@
to_chat(user, "<span class='warning'>It appears to be broken.</span>")
return
if(istype(W, /obj/item/card/id/guest))
to_chat(user, "<span class='warning'>Invalid identification card.</span>")
return
var/obj/item/card/id/I = W
if(!I || !I.registered_name)
return
@@ -67,4 +71,4 @@
registered_name = I.registered_name
desc = "Owned by [I.registered_name]."
else
to_chat(user, "<span class='warning'>Access Denied</span>")
to_chat(user, "<span class='warning'>Access denied.</span>")