diff --git a/Si_Logging/Si_Logging.cs b/Si_Logging/Si_Logging.cs index cc6c79c..79a8949 100644 --- a/Si_Logging/Si_Logging.cs +++ b/Si_Logging/Si_Logging.cs @@ -388,7 +388,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb if (Pref_Log_PlayerConsole_Enable.Value) { - string ConsoleLine = "" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + " (" + __1.ToString().Split('(')[0] + ") committed suicide"; + string ConsoleLine = "" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + " (" + __1.ToString().Split('(')[0] + ") committed suicide"; HelperMethods.SendConsoleMessage(ConsoleLine); } } @@ -401,7 +401,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb if (Pref_Log_PlayerConsole_Enable.Value) { - string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " (" + __1.ToString().Split('(')[0] + ") killed " + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + " (" + __0.ToString().Split('(')[0] + ")"; + string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " (" + __1.ToString().Split('(')[0] + ") killed " + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + " (" + __0.ToString().Split('(')[0] + ")"; HelperMethods.SendConsoleMessage(ConsoleLine); } } @@ -414,7 +414,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb if (Pref_Log_PlayerConsole_Enable.Value) { - string ConsoleLine = "AI (" + __1.ToString().Split('(')[0] + ")" + " killed " + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + " (" + __0.ToString().Split('(')[0] + ")"; + string ConsoleLine = "AI (" + __1.ToString().Split('(')[0] + ")" + " killed " + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + " (" + __0.ToString().Split('(')[0] + ")"; HelperMethods.SendConsoleMessage(ConsoleLine); } } @@ -428,7 +428,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb if (Pref_Log_PlayerConsole_Enable.Value) { - string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " (" + __1.ToString().Split('(')[0] + ") killed " + "AI (" + __0.ToString().Split('(')[0] + ")"; + string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " (" + __1.ToString().Split('(')[0] + ") killed " + "AI (" + __0.ToString().Split('(')[0] + ")"; HelperMethods.SendConsoleMessage(ConsoleLine); } } @@ -691,7 +691,7 @@ public static void Postfix(Target __0, GameObject __1) if (Pref_Log_PlayerConsole_Enable.Value) { - string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " destroyed a structure (" + HelperMethods.GetTeamColor(__0.Team) + structName + ")"; + string ConsoleLine = "" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + " destroyed a structure (" + HelperMethods.GetTeamColor(__0.Team) + structName + ")"; HelperMethods.SendConsoleMessageToTeam(attackerPlayer.Team, ConsoleLine); } }