Skip to content

Commit

Permalink
Remove Log Kill Feed Alignment
Browse files Browse the repository at this point in the history
- Remove alignment code because it is not compatible with the client console log
  • Loading branch information
data-bomb committed Sep 14, 2024
1 parent db240e4 commit 7333e36
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Si_Logging/Si_Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb

if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = "<align=\"right\"><b>" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + "</color></b> (" + __1.ToString().Split('(')[0] + ") committed suicide</align>";
string ConsoleLine = "<b>" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + "</color></b> (" + __1.ToString().Split('(')[0] + ") committed suicide";
HelperMethods.SendConsoleMessage(ConsoleLine);
}
}
Expand All @@ -401,7 +401,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb

if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = "<align=\"right\"><b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> (" + __1.ToString().Split('(')[0] + ") killed <b>" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + "</color></b> (" + __0.ToString().Split('(')[0] + ")</align>";
string ConsoleLine = "<b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> (" + __1.ToString().Split('(')[0] + ") killed <b>" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + "</color></b> (" + __0.ToString().Split('(')[0] + ")";
HelperMethods.SendConsoleMessage(ConsoleLine);
}
}
Expand All @@ -414,7 +414,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb

if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = "<align=\"right\"><b>AI</b> (" + __1.ToString().Split('(')[0] + ")" + " killed <b>" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + "</color></b> (" + __0.ToString().Split('(')[0] + ")</align>";
string ConsoleLine = "<b>AI</b> (" + __1.ToString().Split('(')[0] + ")" + " killed <b>" + HelperMethods.GetTeamColor(victimPlayer) + victimPlayer.PlayerName + "</color></b> (" + __0.ToString().Split('(')[0] + ")";
HelperMethods.SendConsoleMessage(ConsoleLine);
}
}
Expand All @@ -428,7 +428,7 @@ public static void Postfix(StrategyMode __instance, Unit __0, UnityEngine.GameOb

if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = "<align=\"right\"><b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> (" + __1.ToString().Split('(')[0] + ") killed " + "<b>AI</b> (" + __0.ToString().Split('(')[0] + ")</align>";
string ConsoleLine = "<b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> (" + __1.ToString().Split('(')[0] + ") killed " + "<b>AI</b> (" + __0.ToString().Split('(')[0] + ")";
HelperMethods.SendConsoleMessage(ConsoleLine);
}
}
Expand Down Expand Up @@ -691,7 +691,7 @@ public static void Postfix(Target __0, GameObject __1)

if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = "<align=\"right\"><b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> destroyed a structure (" + HelperMethods.GetTeamColor(__0.Team) + structName + "</color>)</align>";
string ConsoleLine = "<b>" + HelperMethods.GetTeamColor(attackerPlayer) + attackerPlayer.PlayerName + "</color></b> destroyed a structure (" + HelperMethods.GetTeamColor(__0.Team) + structName + "</color>)";
HelperMethods.SendConsoleMessageToTeam(attackerPlayer.Team, ConsoleLine);
}
}
Expand Down

0 comments on commit 7333e36

Please sign in to comment.