From 9b85aa5efc03e892aaa5af45664cd9ade6f2a5cd Mon Sep 17 00:00:00 2001 From: MrDoomBringer Date: Wed, 3 Oct 2018 04:40:30 -0400 Subject: [PATCH] Re-adds showing your ID [GOOF YOU LITERALLY HAD TO CHANGE ONE WORD, GOD] (#40555) * GOOF * frickin * asdf * sorry cant add an examine tooltip. please ping me on discord in 2-3 days, or else im reporting you to github staff * asdfasdf * goof you know i love you but cmon fam i had to do it to you * pkpingu * new line * Adds it to all cards * pkpingu i swear im not retarded ok dont tell anyone * turn around flip it and reverse it --- code/game/objects/items/cards_ids.dm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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.")