From f13dccd77682ddd6599e6a4198ba8bcac10c46e1 Mon Sep 17 00:00:00 2001 From: Krausus Date: Sat, 30 May 2015 04:01:30 -0400 Subject: [PATCH] Fixes laptop vendors asking for unneeded PINs Also fixes some minor typos in the HTML generation. --- code/modules/computer3/lapvend.dm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/code/modules/computer3/lapvend.dm b/code/modules/computer3/lapvend.dm index 20839d6394a..a87bc08c4f0 100644 --- a/code/modules/computer3/lapvend.dm +++ b/code/modules/computer3/lapvend.dm @@ -105,9 +105,9 @@ else if(network == 3) dat += "Network card: Powernet (25)
" else - dat += "Network card: None" + dat += "Network card: None
" if (power == 0) - dat += "Power source: Regular" + dat += "Power source: Regular
" else if (power == 1) dat += "Power source: Extended (175)
" else @@ -117,10 +117,10 @@ dat += "
Vend Laptop" if(vendmode == 1) - dat += "Please swipe your card and enter your PIN to complete the transaction" + dat += "Please swipe your card to complete the transaction" if(vendmode == 3) - dat += "Please swipe your card and enter your PIN to be finish returning your computer
" + dat += "Please swipe your card to finish returning your computer
" dat += "Cancel" @@ -214,8 +214,10 @@ var/obj/item/weapon/card/id/C = I visible_message("[usr] swipes a card through [src].") if(vendor_account) - var/attempt_pin = input("Enter pin code", "Vendor transaction") as num - var/datum/money_account/D = attempt_account_access(C.associated_account_number, attempt_pin, 2) + var/datum/money_account/D = attempt_account_access_nosec(C.associated_account_number) + if(D && D.security_level) + var/attempt_pin = input("Enter pin code", "Vendor transaction") as num + D = attempt_account_access(C.associated_account_number, attempt_pin, 2) if(D) var/transaction_amount = total() if(transaction_amount <= D.money)