code/global.dm => code/_global_vars/ (#17244)

* 1

* Full conversion

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2025-04-21 11:55:25 +02:00
committed by GitHub
parent 5d21a53dfa
commit 28e969778c
448 changed files with 1339 additions and 1346 deletions
@@ -205,7 +205,7 @@
if(get_dist(on_wall,user) > 1)
return
var/ndir = get_dir(on_wall, user)
if(!(ndir in cardinal))
if(!(ndir in GLOB.cardinal))
return
var/turf/T = get_turf(user)
if(!istype(T, /turf/simulated/floor))
@@ -19,7 +19,7 @@
/datum/integrated_io/char/scramble()
if(!is_valid())
return
var/list/options = list("!","@","#","$","%","^","&","*") + alphabet_uppercase
var/list/options = list("!","@","#","$","%","^","&","*") + GLOB.alphabet_upper
data = pick(options)
push_data()
@@ -20,7 +20,7 @@
write_data_to_pin(new_data)
/datum/integrated_io/dir/write_data_to_pin(var/new_data)
if(isnull(new_data) || (new_data in (alldirs + list(UP, DOWN))))
if(isnull(new_data) || (new_data in (GLOB.alldirs + list(UP, DOWN))))
data = new_data
holder.on_data_written()
@@ -21,7 +21,7 @@
if(!is_valid())
return
var/string_length = length(data)
var/list/options = list("!","@","#","$","%","^","&","*") + alphabet_uppercase
var/list/options = list("!","@","#","$","%","^","&","*") + GLOB.alphabet_upper
var/new_data = ""
while(string_length)
new_data += pick(options)