Skip to content

Commit

Permalink
ATM TGUI Overhaul (#5666)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazianni committed Jul 5, 2023
1 parent 2d21007 commit a2d2106
Show file tree
Hide file tree
Showing 3 changed files with 526 additions and 365 deletions.
10 changes: 4 additions & 6 deletions code/modules/economy/Accounts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,10 @@
return 0

//this returns the first account datum that matches the supplied accnum/pin combination, it returns null if the combination did not match any account
/proc/attempt_account_access(var/attempt_account_number, var/attempt_pin_number, var/security_level_passed = 0)
for(var/datum/money_account/D in GLOB.all_money_accounts)
if(D.account_number == attempt_account_number)
if( D.security_level <= security_level_passed && (!D.security_level || D.remote_access_pin == attempt_pin_number) )
return D
break
/proc/attempt_account_access(var/attempt_account_number, var/attempt_pin_number, var/valid_card)
var/datum/money_account/D = get_account(attempt_account_number)
if(D && (D.security_level != 2 || valid_card) && (!D.security_level || D.remote_access_pin == attempt_pin_number) )
return D

/proc/get_account(var/account_number)
for(var/datum/money_account/D in GLOB.all_money_accounts)
Expand Down
Loading

0 comments on commit a2d2106

Please sign in to comment.