[MIRROR] var/global/list -> GLOB. conversion (#11193)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-15 15:24:42 -07:00
committed by GitHub
parent 6f8cbcf612
commit 2c9453b5c3
423 changed files with 2496 additions and 2498 deletions

View File

@@ -5,11 +5,11 @@
var/link = "MOBSPAWN"
/obj/machinery/button/mob_spawner_button/attack_hand(mob/living/user)
var/mob_wanted = tgui_input_list(user, "Which Mob do you want to spawn?", "Mob spawn", vr_mob_spawner_options)
var/mob_wanted = tgui_input_list(user, "Which Mob do you want to spawn?", "Mob spawn", GLOB.vr_mob_spawner_options)
if(!mob_wanted)
return
var/neutral = FALSE
var/mobtype = vr_mob_spawner_options[mob_wanted]
var/mobtype = GLOB.vr_mob_spawner_options[mob_wanted]
var/faction = tgui_alert(user, "Do you want the mob's faction to remain the same or be passive?","Faction",list("Normal","Neutral"))
if(!faction)
return

View File

@@ -3,8 +3,6 @@
var/user_vars_remembered //not needed for manual editing, just stores the original vars from the above list to make sure they go back to normal later
/obj/item/Destroy(force, ...)
if(item_tf_spawn_allowed)
item_tf_spawnpoints -= src
user_vars_remembered = null
return ..()

View File

@@ -8,7 +8,6 @@
icon = 'icons/mob/pets.dmi'
icon_state = "syndifox"
chassis = "syndifox"
possible_chassis = list("Fox"="syndifox")
var/gut1 //Custom voregut temp vars
var/gut2
@@ -188,7 +187,7 @@
to_chat(usr,span_warning("You cannot join a pAI card when you are banned from playing as a pAI."))
return
for(var/ourkey in paikeys)
for(var/ourkey in GLOB.paikeys)
if(ourkey == user.ckey)
to_chat(usr, span_warning("You can't just rejoin any old pAI card!!! Your card still exists."))
return
@@ -210,7 +209,7 @@
var/obj/item/paicard/flipper/card = new(location)
var/mob/living/silicon/pai/flipper/new_pai = new(card)
new_pai.key = user.key
paikeys |= new_pai.ckey
GLOB.paikeys |= new_pai.ckey
card.setPersonality(new_pai)
new_pai.SetName(actual_pai_name)
@@ -218,7 +217,7 @@
var/obj/item/paicard/flipper/card = new(location)
var/mob/living/silicon/pai/flipper/new_pai = new(card)
new_pai.key = user.key
paikeys |= new_pai.ckey
GLOB.paikeys |= new_pai.ckey
card.setPersonality(new_pai)
if(!new_pai.savefile_load(new_pai))
var/pai_name = "Vix"//tgui_input_text(new_pai, "Choose your character's name", "Character Name")
@@ -235,11 +234,12 @@
set name = "Choose Chassis"
var/choice
choice = tgui_input_list(usr, "What would you like to use for your mobile chassis icon?", "Chassis Choice", possible_chassis)
if(!choice) return
choice = tgui_alert(src, "What would you like to use for your mobile chassis icon (Fox)?", "Chassis Choice", list("Yes", "No"))
if(choice != "Yes")
return
var/oursize = size_multiplier
resize(1, FALSE, TRUE, TRUE, FALSE) //We resize ourselves to normal here for a moment to let the vis_height get reset
chassis = possible_chassis[choice]
chassis = "syndifox"
vore_capacity = 1
vore_capacity_ex = list("stomach" = 1)
resize(oursize, FALSE, TRUE, TRUE, FALSE) //And then back again now that we're sure the vis_height is correct.

View File

@@ -18,12 +18,12 @@
switch(tgui_list_choice)
if(TGUI_VIEW_ATTACK_LOGS)
var/mob/living/L = tgui_input_list(usr, "Check a player's attack logs.", "Check Player Attack Logs", mob_list)
var/mob/living/L = tgui_input_list(usr, "Check a player's attack logs.", "Check Player Attack Logs", GLOB.mob_list)
show_cmd_admin_check_player_logs(L)
if(TGUI_VIEW_DIALOG_LOGS)
var/mob/living/L = tgui_input_list(usr, "Check a player's dialogue logs.", "Check Player Dialogue Logs", mob_list)
var/mob/living/L = tgui_input_list(usr, "Check a player's dialogue logs.", "Check Player Dialogue Logs", GLOB.mob_list)
show_cmd_admin_check_dialogue_logs(L)
if(TGUI_RESIZE)
var/mob/living/L = tgui_input_list(usr, "Resizes any living mob without any restrictions on size.", "Resize", mob_list)
var/mob/living/L = tgui_input_list(usr, "Resizes any living mob without any restrictions on size.", "Resize", GLOB.mob_list)
if(L)
do_resize(L)

View File

@@ -49,10 +49,10 @@
if(!istype(H))
return 0
dead_mob_list.Remove(H)
if((H in living_mob_list) || (H in dead_mob_list))
GLOB.dead_mob_list.Remove(H)
if((H in GLOB.living_mob_list) || (H in GLOB.dead_mob_list))
WARNING("Mob [H] was ring-defibbed but already in the living or dead list still!")
living_mob_list += H
GLOB.living_mob_list += H
H.timeofdeath = 0
H.set_stat(UNCONSCIOUS)

View File

@@ -1,5 +1,5 @@
/datum/event/spontaneous_malignant_organ/start()
for(var/mob/living/carbon/human/H in shuffle(living_mob_list))
for(var/mob/living/carbon/human/H in shuffle(GLOB.living_mob_list))
var/area/A = get_area(H)
if(!A)
continue
@@ -19,16 +19,16 @@
break
/datum/event/spontaneous_malignant_organ/only_tumor/start()
for(var/mob/living/carbon/human/H in shuffle(living_mob_list))
for(var/mob/living/carbon/human/H in shuffle(GLOB.living_mob_list))
if(H.client && H.random_malignant_organ(TRUE,FALSE,FALSE))
break
/datum/event/spontaneous_malignant_organ/only_para/start()
for(var/mob/living/carbon/human/H in shuffle(living_mob_list))
for(var/mob/living/carbon/human/H in shuffle(GLOB.living_mob_list))
if(H.client && H.random_malignant_organ(FALSE,TRUE,FALSE))
break
/datum/event/spontaneous_malignant_organ/only_engineered/start()
for(var/mob/living/carbon/human/H in shuffle(living_mob_list))
for(var/mob/living/carbon/human/H in shuffle(GLOB.living_mob_list))
if(H.client && H.random_malignant_organ(FALSE,FALSE,TRUE))
break

View File

@@ -111,7 +111,7 @@ GLOBAL_VAR_INIT(dynamic_sector_master, null)
if(!index)
index = 1
testing("Checking if sector at [map_z[index]] has no players.")
for(var/mob/M in global.player_list)
for(var/mob/M in GLOB.player_list)
if(M != observer && (M.z == map_z[index]))
testing("There are people on it.")
return FALSE

View File

@@ -96,7 +96,7 @@
spawn(15)
if(A.loc == loc)
A.forceMove(src)
if(!is_type_in_list(A,item_digestion_blacklist))
if(!is_type_in_list(A, GLOB.item_digestion_blacklist))
crusher.take_item(A) //Force feed the poor bastard.
items_taken++
else