From f061470c3b9b458cdc2c52ef2a0785365be45449 Mon Sep 17 00:00:00 2001 From: Cael_Aislinn Date: Tue, 22 Jan 2013 23:16:23 +1000 Subject: [PATCH] money tweaks Signed-off-by: Cael_Aislinn --- code/WorkInProgress/Cael_Aislinn/Economy/Accounts.dm | 3 +++ code/WorkInProgress/Mini/ATM.dm | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/WorkInProgress/Cael_Aislinn/Economy/Accounts.dm b/code/WorkInProgress/Cael_Aislinn/Economy/Accounts.dm index a69f364e0ff..5d0159b3949 100644 --- a/code/WorkInProgress/Cael_Aislinn/Economy/Accounts.dm +++ b/code/WorkInProgress/Cael_Aislinn/Economy/Accounts.dm @@ -157,6 +157,9 @@ var/global/next_account_number = 0 for(var/datum/money_account/M in src.accounts) if(!A.accounts.Find(M)) A.accounts.Add(M) + for(var/datum/money_account/M in A.accounts) + if(!src.accounts.Find(M)) + src.accounts.Add(M) usr << "\icon[src] Accounts synched across all databases in range." if("create_account") diff --git a/code/WorkInProgress/Mini/ATM.dm b/code/WorkInProgress/Mini/ATM.dm index 7551e96e9c5..68a6c39942e 100644 --- a/code/WorkInProgress/Mini/ATM.dm +++ b/code/WorkInProgress/Mini/ATM.dm @@ -91,7 +91,8 @@ log transactions user << "You insert [I] into [src]." src.attack_hand(user) del I - else ..() + else + ..() /obj/machinery/atm/attack_hand(mob/user as mob) if(istype(user, /mob/living/silicon)) @@ -324,6 +325,8 @@ log transactions held_card = I if("logout") authenticated_account = null + usr << browse(null,"window=atm") + return src.attack_hand(usr) //create the most effective combination of notes to make up the requested amount