From ad7cd0ed58488c71c00f104b2d7d79af24d6dcfa Mon Sep 17 00:00:00 2001 From: Chinsky Date: Mon, 22 Oct 2012 00:41:43 +0400 Subject: [PATCH] ID biometry. Bloodtype, DNA and fignerprint are back to ID --- code/game/objects/items/weapons/cards_ids.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 1094be44c48..f6780570bcb 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -27,6 +27,18 @@ /* * ID CARDS */ +/obj/item/weapon/card/id/examine() + ..() + read() + +/obj/item/weapon/card/id/New() + ..() + spawn(30) + if(istype(loc, /mob/living/carbon/human)) + blood_type = loc:dna:b_type + dna_hash = loc:dna:unique_enzymes + fingerprint_hash = md5(loc:dna:uni_identity) + /obj/item/weapon/card/id/attack_self(mob/user as mob) for(var/mob/O in viewers(user, null)) O.show_message(text("[] shows you: \icon[] []: assignment: []", user, src, src.name, src.assignment), 1) @@ -48,6 +60,9 @@ set src in usr usr << text("\icon[] []: The current assignment on the card is [].", src, src.name, src.assignment) + usr << "The blood type on the card is [blood_type]." + usr << "The DNA hash on the card is [dna_hash]." + usr << "The fingerprint hash on the card is [fingerprint_hash]." return /obj/item/weapon/card/id/syndicate/attack_self(mob/user as mob)