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:
Selis
2025-04-17 20:16:53 +02:00
committed by GitHub
parent 6a47a779d5
commit 21dcf0555b
229 changed files with 1227 additions and 1220 deletions
@@ -111,7 +111,7 @@
H.forceMove(T)
if(make_antag)
var/datum/antagonist/antag = all_antag_types[make_antag]
var/datum/antagonist/antag = GLOB.all_antag_types[make_antag]
if(antag)
if(antag.add_antagonist(H.mind, 1, 1, 0, 1, 1))
log_admin("\The [src] made [key_name(src)] into a [antag.role_text].")
@@ -233,7 +233,7 @@
H.forceMove(T)
if(make_antag)
var/datum/antagonist/antag = all_antag_types[make_antag]
var/datum/antagonist/antag = GLOB.all_antag_types[make_antag]
if(antag)
if(antag.add_antagonist(H.mind, 1, 1, 0, 1, 1))
log_admin("\The [src] made [key_name(src)] into a [antag.role_text].")
@@ -122,7 +122,7 @@
H.forceMove(T)
if(special_role)
var/datum/antagonist/role = all_antag_types[special_role] //Explicitly NOT an antagonist.
var/datum/antagonist/role = GLOB.all_antag_types[special_role] //Explicitly NOT an antagonist.
if(role)
if(role.add_antagonist(H.mind, 1, 1, 0, 1, 1))
log_admin("\The [src] made [key_name(src)] into a [role.role_text].")
@@ -19,7 +19,7 @@
to_chat(user, span_danger("The spike already has something on it, finish collecting its meat first!"))
else
if(spike(G.affecting))
var/datum/gender/T = gender_datums[G.affecting.get_visible_gender()]
var/datum/gender/T = GLOB.gender_datums[G.affecting.get_visible_gender()]
visible_message(span_danger("[user] has forced [G.affecting] onto the spike, killing [T.him] instantly!"))
var/mob/M = G.affecting
M.forceMove(src)
+1 -1
View File
@@ -591,7 +591,7 @@
R.cell.charge -= 20
else
B.deductcharge(B.hitcost)
var/datum/gender/TU = gender_datums[user.get_visible_gender()]
var/datum/gender/TU = GLOB.gender_datums[user.get_visible_gender()]
user.visible_message( \
span_danger("[user] was stunned by [TU.his] wet [O]!"), \
span_userdanger("[user] was stunned by [TU.his] wet [O]!"))