mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[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:
committed by
GitHub
parent
6f8cbcf612
commit
2c9453b5c3
@@ -1,17 +1,3 @@
|
||||
//Needs a BIG rework.
|
||||
var/global/list/changeling_fabricated_clothing = list(
|
||||
"w_uniform" = /obj/item/clothing/under/chameleon/changeling,
|
||||
"head" = /obj/item/clothing/head/chameleon/changeling,
|
||||
"wear_suit" = /obj/item/clothing/suit/chameleon/changeling,
|
||||
"shoes" = /obj/item/clothing/shoes/chameleon/changeling,
|
||||
"gloves" = /obj/item/clothing/gloves/chameleon/changeling,
|
||||
"wear_mask" = /obj/item/clothing/mask/chameleon/changeling,
|
||||
"glasses" = /obj/item/clothing/glasses/chameleon/changeling,
|
||||
"back" = /obj/item/storage/backpack/chameleon/changeling,
|
||||
"belt" = /obj/item/storage/belt/chameleon/changeling,
|
||||
"wear_id" = /obj/item/card/id/syndicate/changeling
|
||||
)
|
||||
|
||||
/datum/power/changeling/fabricate_clothing
|
||||
name = "Fabricate Clothing"
|
||||
desc = "We reform our flesh to resemble various cloths, leathers, and other materials, allowing us to quickly create a disguise. \
|
||||
@@ -27,7 +13,7 @@ var/global/list/changeling_fabricated_clothing = list(
|
||||
set category = "Changeling"
|
||||
set name = "Fabricate Clothing (10)"
|
||||
|
||||
if(changeling_generic_equip_all_slots(changeling_fabricated_clothing, cost = 10))
|
||||
if(changeling_generic_equip_all_slots(GLOB.changeling_fabricated_clothing, cost = 10))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
return FALSE
|
||||
|
||||
if(src.stat == DEAD)
|
||||
dead_mob_list -= src
|
||||
living_mob_list += src
|
||||
GLOB.dead_mob_list -= src
|
||||
GLOB.living_mob_list += src
|
||||
var/mob/living/carbon/C = src
|
||||
|
||||
C.tod = null
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
if(OOC)
|
||||
var/active = 0
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.real_name == name && M.client && M.client.inactivity <= 10 MINUTES)
|
||||
active = 1
|
||||
break
|
||||
@@ -99,7 +99,7 @@
|
||||
var/real_rank = make_list_rank(t.fields["real_rank"])
|
||||
|
||||
var/active = 0
|
||||
for(var/mob/M in player_list)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
if(M.real_name == name && M.client && M.client.inactivity <= 10 MINUTES)
|
||||
active = 1
|
||||
break
|
||||
@@ -110,10 +110,10 @@
|
||||
off[name] = rank
|
||||
|
||||
// Synthetics don't have actual records, so we will pull them from here.
|
||||
for(var/mob/living/silicon/ai/ai in mob_list)
|
||||
for(var/mob/living/silicon/ai/ai in GLOB.mob_list)
|
||||
bot[ai.name] = "Artificial Intelligence"
|
||||
|
||||
for(var/mob/living/silicon/robot/robot in mob_list)
|
||||
for(var/mob/living/silicon/robot/robot in GLOB.mob_list)
|
||||
// No combat/syndicate cyborgs, no drones, and no AI shells.
|
||||
if(!robot.scrambledcodes && !robot.shell && !(robot.module && robot.module.hide_on_manifest()))
|
||||
bot[robot.name] = "[robot.modtype] [robot.braintype]"
|
||||
@@ -271,10 +271,10 @@ GLOBAL_LIST_EMPTY(PDA_Manifest)
|
||||
|
||||
// Synthetics don't have actual records, so we will pull them from here.
|
||||
// Synths don't have records, which is the means by which isactive is retrieved, so I'm hardcoding it to active, don't really have any better means
|
||||
for(var/mob/living/silicon/ai/ai in mob_list)
|
||||
for(var/mob/living/silicon/ai/ai in GLOB.mob_list)
|
||||
bot[++bot.len] = list("name" = ai.real_name, "rank" = "Artificial Intelligence", "active" = "Active")
|
||||
|
||||
for(var/mob/living/silicon/robot/robot in mob_list)
|
||||
for(var/mob/living/silicon/robot/robot in GLOB.mob_list)
|
||||
// No combat/syndicate cyborgs, no drones, and no AI shells.
|
||||
if(robot.scrambledcodes || robot.shell || (robot.module && robot.module.hide_on_manifest()))
|
||||
continue
|
||||
@@ -298,7 +298,7 @@ GLOBAL_LIST_EMPTY(PDA_Manifest)
|
||||
|
||||
/datum/datacore/proc/manifest()
|
||||
spawn()
|
||||
for(var/mob/living/carbon/human/H in player_list)
|
||||
for(var/mob/living/carbon/human/H in GLOB.player_list)
|
||||
manifest_inject(H)
|
||||
return
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
if(isnull(disease))
|
||||
return FALSE
|
||||
|
||||
var/mob/living/carbon/human/H = tgui_input_list(usr, "Choose infectee", "Characters", human_mob_list)
|
||||
var/mob/living/carbon/human/H = tgui_input_list(usr, "Choose infectee", "Characters", GLOB.human_mob_list)
|
||||
|
||||
if(isnull(H))
|
||||
return FALSE
|
||||
|
||||
@@ -456,7 +456,7 @@ GLOBAL_LIST_INIT(advance_cures, list(
|
||||
for(var/datum/disease/advance/AD in GLOB.active_diseases)
|
||||
AD.Refresh()
|
||||
|
||||
H = tgui_input_list(src, "Choose infectee", "Infectees", human_mob_list)
|
||||
H = tgui_input_list(src, "Choose infectee", "Infectees", GLOB.human_mob_list)
|
||||
|
||||
if(isnull(H))
|
||||
return FALSE
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
/// Begin the ghost asking
|
||||
/datum/ghost_query/proc/query()
|
||||
// First, ask all the ghosts who want to be asked.
|
||||
for(var/mob/observer/dead/D as anything in observer_mob_list)
|
||||
for(var/mob/observer/dead/D as anything in GLOB.observer_mob_list)
|
||||
if(evaluate_candidate(D))
|
||||
ask_question(D)
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
if(antag) antag.place_mob(src.current)
|
||||
|
||||
else if (href_list["role_edit"])
|
||||
var/new_role = tgui_input_list(usr, "Select new role", "Assigned role", assigned_role, joblist)
|
||||
var/new_role = tgui_input_list(usr, "Select new role", "Assigned role", assigned_role, GLOB.joblist)
|
||||
if (!new_role) return
|
||||
assigned_role = new_role
|
||||
|
||||
@@ -493,7 +493,7 @@
|
||||
return 0
|
||||
|
||||
/datum/mind/proc/get_ghost(even_if_they_cant_reenter)
|
||||
for(var/mob/observer/dead/G in player_list)
|
||||
for(var/mob/observer/dead/G in GLOB.player_list)
|
||||
if(G.mind == src)
|
||||
if(G.can_reenter_corpse || even_if_they_cant_reenter)
|
||||
return G
|
||||
|
||||
@@ -66,7 +66,7 @@ var/global/datum/repository/crew/crew_repository = new()
|
||||
|
||||
/datum/repository/crew/proc/scan()
|
||||
var/list/tracked = list()
|
||||
for(var/mob/living/carbon/human/H in mob_list)
|
||||
for(var/mob/living/carbon/human/H in GLOB.mob_list)
|
||||
if(istype(H.w_uniform, /obj/item/clothing/under))
|
||||
var/obj/item/clothing/under/C = H.w_uniform
|
||||
if (C.has_sensor)
|
||||
|
||||
Reference in New Issue
Block a user