mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +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
@@ -1,4 +1,4 @@
|
||||
var/global/file_uid = 0
|
||||
GLOBAL_VAR_INIT(file_uid, 0)
|
||||
|
||||
/datum/computer_file/
|
||||
/// Placeholder. Whitespace and most special characters are not allowed.
|
||||
@@ -26,8 +26,8 @@ var/global/file_uid = 0
|
||||
|
||||
/datum/computer_file/New(list/md = null)
|
||||
..()
|
||||
uid = file_uid
|
||||
file_uid++
|
||||
uid = GLOB.file_uid
|
||||
GLOB.file_uid++
|
||||
if(islist(md))
|
||||
metadata = md.Copy()
|
||||
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
T.purpose = "Purchase of [(devtype == 1) ? "laptop computer" : "tablet microcomputer"]."
|
||||
T.amount = total_price
|
||||
T.source_terminal = src.name
|
||||
T.date = current_date_string
|
||||
T.date = GLOB.current_date_string
|
||||
T.time = stationtime2text()
|
||||
customer_account.transaction_log.Add(T)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user