Allow AltClick to remove ID from wallets (#13229)

This commit is contained in:
Sierra Brown
2022-02-23 10:35:40 -08:00
committed by GitHub
parent 8adc97f7d4
commit 24c9867d4b
2 changed files with 55 additions and 0 deletions

View File

@@ -90,6 +90,20 @@
else
return ..()
/obj/item/storage/wallet/AltClick(mob/user)
if (user != loc || user.incapacitated() || !ishuman(user))
return ..()
var/obj/item/card/id/id = GetID()
if (istype(id))
remove_from_storage(id)
user.put_in_hands(id)
return
return ..()
/obj/item/storage/wallet/random/fill()
..()
var/item1_type = pick( \