mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
tweakfixes to finances
Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -43,7 +43,7 @@ log transactions
|
||||
if(stat & NOPOWER)
|
||||
return
|
||||
|
||||
if(linked_db && linked_db.stat & NOPOWER)
|
||||
if(linked_db && ( !(linked_db.stat & NOPOWER) || !linked_db.activated) )
|
||||
linked_db = null
|
||||
authenticated_account = null
|
||||
src.visible_message("\red \icon[src] [src] buzzes rudely, \"Connection to remote database lost.\"")
|
||||
@@ -68,7 +68,7 @@ log transactions
|
||||
|
||||
/obj/machinery/atm/proc/reconnect_database()
|
||||
for(var/obj/machinery/account_database/DB in world)
|
||||
if(DB.z == src.z && !DB.stat & NOPOWER)
|
||||
if(DB.z == src.z && ( !(DB.stat & NOPOWER) || !linked_db.activated) )
|
||||
linked_db = DB
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user