mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Conversion many Globals to Managed Globals (Part 1) (#10665)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
06f0821bcf
commit
f7219329ca
@@ -36,7 +36,7 @@ log transactions
|
||||
var/datum/effect/effect/system/spark_spread/spark_system
|
||||
|
||||
/obj/machinery/atm/Initialize(mapload)
|
||||
machine_id = "[station_name()] RT #[num_financial_terminals++]"
|
||||
machine_id = "[station_name()] RT #[GLOB.num_financial_terminals++]"
|
||||
. = ..()
|
||||
spark_system = new /datum/effect/effect/system/spark_spread
|
||||
spark_system.set_up(5, 0, src)
|
||||
@@ -113,7 +113,7 @@ log transactions
|
||||
T.purpose = "Credit deposit"
|
||||
T.amount = I:worth
|
||||
T.source_terminal = machine_id
|
||||
T.date = current_date_string
|
||||
T.date = GLOB.current_date_string
|
||||
T.time = stationtime2text()
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
|
||||
@@ -215,7 +215,7 @@ log transactions
|
||||
R.info += span_italics("Account holder:") + " [authenticated_account.owner_name]<br>"
|
||||
R.info += span_italics("Account number:") + " [authenticated_account.account_number]<br>"
|
||||
R.info += span_italics("Balance:") + " $[authenticated_account.money]<br>"
|
||||
R.info += span_italics("Date and time:") + " [stationtime2text()], [current_date_string]<br><br>"
|
||||
R.info += span_italics("Date and time:") + " [stationtime2text()], [GLOB.current_date_string]<br><br>"
|
||||
R.info += span_italics("Service terminal ID:") + " [machine_id]<br>"
|
||||
|
||||
//stamp the paper
|
||||
@@ -243,7 +243,7 @@ log transactions
|
||||
R.info = span_bold("Transaction logs") + "<br>"
|
||||
R.info += span_italics("Account holder:") + " [authenticated_account.owner_name]<br>"
|
||||
R.info += span_italics("Account number:") + " [authenticated_account.account_number]<br>"
|
||||
R.info += span_italics("Date and time:") + " [stationtime2text()], [current_date_string]<br><br>"
|
||||
R.info += span_italics("Date and time:") + " [stationtime2text()], [GLOB.current_date_string]<br><br>"
|
||||
R.info += span_italics("Service terminal ID:") + " [machine_id]<br>"
|
||||
R.info += "<table border=1 style='width:100%'>"
|
||||
R.info += "<tr>"
|
||||
@@ -313,7 +313,7 @@ log transactions
|
||||
T.target_name = failed_account.owner_name
|
||||
T.purpose = "Unauthorised login attempt"
|
||||
T.source_terminal = machine_id
|
||||
T.date = current_date_string
|
||||
T.date = GLOB.current_date_string
|
||||
T.time = stationtime2text()
|
||||
failed_account.transaction_log.Add(T)
|
||||
else
|
||||
@@ -333,7 +333,7 @@ log transactions
|
||||
T.target_name = authenticated_account.owner_name
|
||||
T.purpose = "Remote terminal access"
|
||||
T.source_terminal = machine_id
|
||||
T.date = current_date_string
|
||||
T.date = GLOB.current_date_string
|
||||
T.time = stationtime2text()
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
|
||||
@@ -361,7 +361,7 @@ log transactions
|
||||
T.target_name = "Account #[target_account_number]"
|
||||
T.purpose = transfer_purpose
|
||||
T.source_terminal = machine_id
|
||||
T.date = current_date_string
|
||||
T.date = GLOB.current_date_string
|
||||
T.time = stationtime2text()
|
||||
T.amount = "([transfer_amount])"
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
@@ -397,7 +397,7 @@ log transactions
|
||||
T.purpose = "Credit withdrawal"
|
||||
T.amount = "([amount])"
|
||||
T.source_terminal = machine_id
|
||||
T.date = current_date_string
|
||||
T.date = GLOB.current_date_string
|
||||
T.time = stationtime2text()
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
else
|
||||
@@ -428,7 +428,7 @@ log transactions
|
||||
T.purpose = "Credit withdrawal"
|
||||
T.amount = "([amount])"
|
||||
T.source_terminal = machine_id
|
||||
T.date = current_date_string
|
||||
T.date = GLOB.current_date_string
|
||||
T.time = stationtime2text()
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user