diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm index 5644abfb672..4ff50bb3e67 100644 --- a/code/game/objects/structures/displaycase.dm +++ b/code/game/objects/structures/displaycase.dm @@ -397,9 +397,9 @@ var/obj/item/card/id/potential_acc = I if(!payments_acc) payments_acc = potential_acc.registered_account - to_chat(user, "Vend-a-tray registered.") + to_chat(user, "Vend-a-tray registered. Use a PDA with your ID to change the cost.") else if(payments_acc != potential_acc.registered_account) - to_chat(user, "Vend-a-tray already registered.") + to_chat(user, "This Vend-a-tray is already registered.") return if(istype(I, /obj/item/pda)) var/obj/item/pda/pda = I @@ -410,10 +410,33 @@ if(!new_price || (get_dist(src,user) > 1)) return sale_price = CLAMP(round(new_price, 1), 10, 1000) - to_chat(user, "The cost is now set to [sale_price]. Use your PDA with ID to change the cost.") + to_chat(user, "The cost is now set to [sale_price].") return 1 + if(I.tool_behaviour == TOOL_WRENCH && open && user.a_intent == INTENT_HELP ) + if(anchored) + to_chat(user, "You start unsecuring [src]...") + else + to_chat(user, "You start securing [src]...") + if(I.use_tool(src, user, 16, volume=50)) + if(QDELETED(I)) + return + if(anchored) + to_chat(user, "You unsecure [src].") + else + to_chat(user, "You secure [src].") + anchored = !anchored + return + else if(I.tool_behaviour == TOOL_WRENCH && !open && user.a_intent == INTENT_HELP) + to_chat(user, "[src] must be open to move it.") + return . = ..() +/obj/structure/displaycase/forsale/emag_act(mob/user) + . = ..() + payments_acc = null + req_access = list() + to_chat(user, "[src]'s card reader fizzles and smokes, and the account owner is reset.") + /obj/structure/displaycase/forsale/examine(mob/user) . = ..() if(showpiece && !open) @@ -441,6 +464,7 @@ payments_acc.adjust_money(sale_price) customer.put_in_hands(showpiece) to_chat(user, "You purchase [showpiece] for [sale_price] credits.") + icon = 'icons/obj/stationobjs.dmi' flick("laserbox_vend", src) showpiece = null update_icon() diff --git a/icons/obj/stationobjs.dmi b/icons/obj/stationobjs.dmi index 462a9fc253b..7acd844bba6 100644 Binary files a/icons/obj/stationobjs.dmi and b/icons/obj/stationobjs.dmi differ