mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Trimmed some code.
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
reconnect_database()
|
||||
if(linked_db && linked_account)
|
||||
var/obj/item/I = usr.get_active_hand()
|
||||
charge_card(I)
|
||||
scan_card(I)
|
||||
else
|
||||
to_chat(usr, "[bicon(src)]<span class='warning'>Unable to link accounts.</span>")
|
||||
if("reset")
|
||||
@@ -173,21 +173,17 @@
|
||||
|
||||
src.attack_self(usr)
|
||||
|
||||
/obj/item/device/eftpos/proc/charge_card(var/obj/item/weapon/card/I)
|
||||
if(transaction_locked && !transaction_paid)
|
||||
var/charge_response = charge_flow(linked_db, I, usr, transaction_amount, linked_account, transaction_purpose, eftpos_name, machine_id)
|
||||
if(charge_response == CARD_CAPTURE_SUCCESS)
|
||||
playsound(src, 'sound/machines/chime.ogg', 50, 1)
|
||||
visible_message("[bicon(src)] \The [src] chimes.")
|
||||
transaction_paid = 1
|
||||
else
|
||||
playsound(src, 'sound/machines/alert.ogg', 50, 1)
|
||||
visible_message("[bicon(src)] \The [src] buzzes.")
|
||||
|
||||
|
||||
/obj/item/device/eftpos/proc/scan_card(var/obj/item/weapon/card/I)
|
||||
if (istype(I, /obj/item/weapon/card/id))
|
||||
charge_card(I)
|
||||
if(transaction_locked && !transaction_paid)
|
||||
var/charge_response = charge_flow(linked_db, I, usr, transaction_amount, linked_account, transaction_purpose, eftpos_name, machine_id)
|
||||
if(charge_response == CARD_CAPTURE_SUCCESS)
|
||||
playsound(src, 'sound/machines/chime.ogg', 50, 1)
|
||||
visible_message("[bicon(src)] \The [src] chimes.")
|
||||
transaction_paid = 1
|
||||
else
|
||||
playsound(src, 'sound/machines/alert.ogg', 50, 1)
|
||||
visible_message("[bicon(src)] \The [src] buzzes.")
|
||||
else
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user