From 9a0b9928cfccfa10f452dd48763eb92b5fbce9e2 Mon Sep 17 00:00:00 2001 From: haha26315 Date: Tue, 20 Sep 2022 22:25:30 -0400 Subject: [PATCH] Fix AIs appearing in game manifest Ensures AIs appear properly when getting the game manifest, appropriately labeled. --- code/datums/datacore.dm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index e386ced61..34982ca89 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -146,10 +146,15 @@ //If we're getting the manifest from out of the round, add borgs to it if(OOC) - for(var/mob/living/silicon/robot/R in GLOB.silicon_mobs) - if(!R.hack_software || R.emagged) //If they're not hacked except via emag - var name = R.name - bot[name] = "Station Cyborg" + for(var/mob/living/silicon/S in GLOB.silicon_mobs) + var name = S.name + if(istype(S, /mob/living/silicon/robot)) + var/mob/living/silicon/robot/R = S + if(!R.shell && (!R.hack_software || R.emagged)) //If they're not hacked except via emag. Also ensures no duplicates due to shells + bot[name] = "Station Cyborg" + else + if(istype(S, /mob/living/silicon/ai)) + bot[name] = "Station AI" if(heads.len > 0) dat += "Heads"