diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index 62b7fef8ea9..1d1a7c9f1d7 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -127,13 +127,16 @@ var/datum/bank_account/registered_account var/obj/machinery/paystand/my_store - - /obj/item/card/id/Initialize(mapload) . = ..() if(mapload && access_txt) access = text2access(access_txt) +/obj/item/card/id/attack_self(mob/user) + if(Adjacent(user)) + user.visible_message("[user] shows you: [icon2html(src, viewers(user))] [src.name].", "You show \the [src.name].") + add_fingerprint(user) + /obj/item/card/id/vv_edit_var(var_name, var_value) . = ..() if(.) @@ -149,7 +152,12 @@ to_chat(user, "You insert [holochip] into [src], adding [holochip.credits] credits to your account.") qdel(holochip) -/obj/item/card/id/attack_self(mob/user) +/obj/item/card/id/AltClick(mob/living/user) + if(user.get_active_held_item() != src) + to_chat(user, "You must hold the ID in your hand to do this.") + return + if (!user.canUseTopic(src, BE_CLOSE) || !isliving(user)) + return if(!registered_account) var/new_bank_id = input(user, "Enter your account ID.", "Account Reclamation", 111111) as num if(!new_bank_id || new_bank_id < 111111 || new_bank_id > 999999) @@ -184,7 +192,7 @@ var/datum/bank_account/D = SSeconomy.get_dep_account(registered_account.account_job.paycheck_department) if(D) to_chat(user, "The [D.account_holder] reports a balance of $[D.account_balance].") - to_chat(user, "Use your ID in-hand to pull money from your account in the form of holochips.") + to_chat(user, "Alt-Click your ID in-hand to pull money from your account in the form of holochips.") to_chat(user, "You can insert credits into your account by pressing holochips against the ID.") to_chat(user, "If you lose this ID card, you can reclaim your account by using a blank ID card inhand and punching in the account ID.")