diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 6d91ffdc969..487c5eb39fe 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -297,7 +297,7 @@ //When a borg is activated, it can choose which AI it wants to be slaved to /proc/active_ais() . = list() - for(var/mob/living/silicon/ai/A in GLOB.alive_mob_list) + for(var/mob/living/silicon/ai/A in GLOB.ai_list) if(A.stat == DEAD) continue if(A.control_disabled) diff --git a/code/controllers/subsystem/SSticker.dm b/code/controllers/subsystem/SSticker.dm index 2dab6c4b66b..2dbd6aedde4 100644 --- a/code/controllers/subsystem/SSticker.dm +++ b/code/controllers/subsystem/SSticker.dm @@ -568,7 +568,7 @@ SUBSYSTEM_DEF(ticker) end_of_round_info += "
" //Silicon laws report - for(var/mob/living/silicon/ai/aiPlayer in GLOB.mob_list) + for(var/mob/living/silicon/ai/aiPlayer in GLOB.ai_list) var/ai_ckey = safe_get_ckey(aiPlayer) if(aiPlayer.stat != DEAD) diff --git a/code/game/gamemodes/cult/runes.dm b/code/game/gamemodes/cult/runes.dm index c954a0ae059..6639c11dcc1 100644 --- a/code/game/gamemodes/cult/runes.dm +++ b/code/game/gamemodes/cult/runes.dm @@ -63,7 +63,7 @@ To draw a rune, use a ritual dagger. keyword = set_keyword var/image/blood = image(loc = src) blood.override = 1 - for(var/mob/living/silicon/ai/AI in GLOB.player_list) + for(var/mob/living/silicon/ai/AI in GLOB.ai_list) AI.client.images += blood /obj/effect/rune/examine(mob/user) diff --git a/code/game/objects/items/devices/enginepicker.dm b/code/game/objects/items/devices/enginepicker.dm index 2541d799184..304a973e65a 100644 --- a/code/game/objects/items/devices/enginepicker.dm +++ b/code/game/objects/items/devices/enginepicker.dm @@ -74,7 +74,7 @@ new G(T) //Spawns the switch-selected engine on the chosen beacon's turf var/ailist[] = list() - for(var/mob/living/silicon/ai/A in GLOB.alive_mob_list) + for(var/mob/living/silicon/ai/A in GLOB.ai_list) ailist += A if(length(ailist)) var/mob/living/silicon/ai/announcer = pick(ailist) diff --git a/code/modules/events/communications_blackout.dm b/code/modules/events/communications_blackout.dm index 9d1931e5e2a..12d579b4899 100644 --- a/code/modules/events/communications_blackout.dm +++ b/code/modules/events/communications_blackout.dm @@ -6,7 +6,7 @@ "Ionospheri:%? MCayj^j<.3-BZZZZZZT", \ "#4nd%;f4y6,>?%-BZZZZZZZT") - for(var/mob/living/silicon/ai/A in GLOB.player_list) //AIs are always aware of communication blackouts. + for(var/mob/living/silicon/ai/A in GLOB.ai_list) //AIs are always aware of communication blackouts. to_chat(A, "
") to_chat(A, "[alert]") to_chat(A, "
") diff --git a/code/modules/events/money_spam.dm b/code/modules/events/money_spam.dm index c6988e16471..26dd673250f 100644 --- a/code/modules/events/money_spam.dm +++ b/code/modules/events/money_spam.dm @@ -99,7 +99,7 @@ last_spam_time = world.time if(prob(50)) //Give the AI an increased chance to intercept the message - for(var/mob/living/silicon/ai/ai in GLOB.mob_list) + for(var/mob/living/silicon/ai/ai in GLOB.ai_list) // Allows other AIs to intercept the message but the AI won't intercept their own message. if(ai.aiPDA != P && ai.aiPDA != src) ai.show_message("Intercepted message from [sender] (Unknown / spam?) to [P:owner]: [message]") diff --git a/code/modules/mob/living/silicon/ai/ai_mob.dm b/code/modules/mob/living/silicon/ai/ai_mob.dm index 76eb27abfd3..33a071912f7 100644 --- a/code/modules/mob/living/silicon/ai/ai_mob.dm +++ b/code/modules/mob/living/silicon/ai/ai_mob.dm @@ -154,8 +154,8 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( var/pickedName = null while(!pickedName) pickedName = pick(GLOB.ai_names) - for(var/mob/living/silicon/ai/A in GLOB.mob_list) - if(A.real_name == pickedName && length(possibleNames) > 1) //fixing the theoretically possible infinite loop + for(var/mob/living/silicon/ai/A in GLOB.ai_list) + if(A.real_name == pickedName && length(possibleNames) > 1) // fixing the theoretically possible infinite loop possibleNames -= pickedName pickedName = null diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index aa320349eaf..c85d94b64a6 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -400,7 +400,7 @@ /mob/new_player/proc/AnnounceArrival(mob/living/carbon/human/character, rank, join_message) if(SSticker.current_state == GAME_STATE_PLAYING) var/ailist[] = list() - for(var/mob/living/silicon/ai/A in GLOB.alive_mob_list) + for(var/mob/living/silicon/ai/A in GLOB.ai_list) if(A.announce_arrivals) ailist += A if(length(ailist)) @@ -433,7 +433,7 @@ /mob/new_player/proc/AnnounceCyborg(mob/living/character, rank, join_message) if(SSticker.current_state == GAME_STATE_PLAYING) var/ailist[] = list() - for(var/mob/living/silicon/ai/A in GLOB.alive_mob_list) + for(var/mob/living/silicon/ai/A in GLOB.ai_list) ailist += A if(length(ailist)) var/mob/living/silicon/ai/announcer = pick(ailist)