mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
guest pass cant be used on personal lockers (#22045)
This commit is contained in:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user