From 5a9a8f02cc898feb29ab7f2d19295bfb5b4ece4b Mon Sep 17 00:00:00 2001 From: zxaber <37497534+zxaber@users.noreply.github.com> Date: Sat, 20 Mar 2021 16:23:34 -0700 Subject: [PATCH] Round end report now shows AI laws even if they are controlling a shell (#57829) * Round end report now shows AI laws even if they are controlling a shell * inline --- code/__HELPERS/roundend.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/roundend.dm b/code/__HELPERS/roundend.dm index 9ec22e16cd1..c8407907757 100644 --- a/code/__HELPERS/roundend.dm +++ b/code/__HELPERS/roundend.dm @@ -450,8 +450,9 @@ //Silicon laws report for (var/i in GLOB.ai_list) var/mob/living/silicon/ai/aiPlayer = i - if(aiPlayer.mind) - parts += "[aiPlayer.name] (Played by: [aiPlayer.mind.key])'s laws [aiPlayer.stat != DEAD ? "at the end of the round" : "when it was deactivated"] were:" + var/datum/mind/aiMind = aiPlayer.deployed_shell?.mind || aiPlayer.mind + if(aiMind) + parts += "[aiPlayer.name] (Played by: [aiMind.key])'s laws [aiPlayer.stat != DEAD ? "at the end of the round" : "when it was deactivated"] were:" parts += aiPlayer.laws.get_law_list(include_zeroth=TRUE) parts += "Total law changes: [aiPlayer.law_change_counter]"