mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-22 04:24:20 +01:00
Makes some loops use GLOB.ai_list instead of other various lists (#27916)
* Thngy * Update code/modules/mob/living/silicon/ai/ai_mob.dm Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> --------- Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
@@ -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, "<br>")
|
||||
to_chat(A, "<span class='warning'><b>[alert]</b></span>")
|
||||
to_chat(A, "<br>")
|
||||
|
||||
@@ -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("<i>Intercepted message from <b>[sender]</b></i> (Unknown / spam?) <i>to <b>[P:owner]</b>: [message]</i>")
|
||||
|
||||
Reference in New Issue
Block a user