From 5b60ae5c1ed428b665161575b4e1d314185ac1ed Mon Sep 17 00:00:00 2001 From: FloFluoro <3611705+FloFluoro@users.noreply.github.com> Date: Sun, 25 Sep 2022 12:03:21 -0400 Subject: [PATCH] IDs now take priority over PDAs in get_idcard (#19051) --- code/modules/mob/living/carbon/human/human.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index d3019a0a141..fcf64fa8c6e 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -499,12 +499,13 @@ /mob/living/carbon/human/proc/get_idcard(check_hands = FALSE) var/obj/item/card/id/id = wear_id var/obj/item/pda/pda = wear_id - if(istype(pda) && pda.id) - id = pda.id - else - pda = wear_pda + if(!istype(id)) //We only check for PDAs if there isn't an ID in the ID slot. IDs take priority. if(istype(pda) && pda.id) id = pda.id + else + pda = wear_pda + if(istype(pda) && pda.id) + id = pda.id if(check_hands) if(istype(get_active_hand(), /obj/item/card/id))