- Putting a normal or a gold ID card into a wallet now properly updates the sprite. The sprite that's chosen is the sprite of the card which is first in the list of items. Removing an ID from the wallet also properly updates the sprite.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3106 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-02-11 21:00:03 +00:00
parent cc67d26201
commit 42fa87c2b2
3 changed files with 21 additions and 2 deletions
@@ -36,6 +36,14 @@ FINGERPRINT CARD
src.add_fingerprint(user)
return
/obj/item/weapon/card/id/attack_hand(mob/user as mob)
var/obj/item/weapon/storage/wallet/WL
if( istype(loc, /obj/item/weapon/storage/wallet) )
WL = loc
..()
if(WL)
WL.update_icon()
/obj/item/weapon/card/id/verb/read()
set name = "Read ID Card"
set category = "Object"