mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-17 18:14:25 +01:00
Conversion many Globals to Managed Globals (Part 1) (#17121)
* Conversion of some Globals to Managed Globals * Fix * for later --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
/var/list/chemical_reaction_logs = list()
|
||||
GLOBAL_LIST_EMPTY(chemical_reaction_logs)
|
||||
|
||||
/proc/log_chemical_reaction(atom/A, decl/chemical_reaction/R, multiplier)
|
||||
if(!A || !R)
|
||||
@@ -8,7 +8,7 @@
|
||||
var/turf/T = get_turf(A)
|
||||
var/logstr = "[usr ? key_name(usr) : "EVENT"] mixed [R.name] ([R.result]) (x[multiplier]) in \the [A] at [T ? "[T.x],[T.y],[T.z]" : "*null*"]"
|
||||
|
||||
chemical_reaction_logs += "\[[time_stamp()]\] [logstr]"
|
||||
GLOB.chemical_reaction_logs += "\[[time_stamp()]\] [logstr]"
|
||||
|
||||
if(R.log_is_important)
|
||||
message_admins(logstr)
|
||||
@@ -22,7 +22,7 @@
|
||||
return
|
||||
|
||||
var/html = ""
|
||||
for(var/entry in chemical_reaction_logs)
|
||||
for(var/entry in GLOB.chemical_reaction_logs)
|
||||
html += "[entry]<br>"
|
||||
|
||||
usr << browse("<html>[html]</html>", "window=chemlogs")
|
||||
|
||||
Reference in New Issue
Block a user