Skip to content

Commit

Permalink
Console Logging Updates
Browse files Browse the repository at this point in the history
- Removed "Round has begun" message because the game already sends this
- Changed grammar from "changed teams <teamname>" -> "changed to team <teamname>"
  • Loading branch information
data-bomb committed Jul 13, 2024
1 parent d3c4033 commit 960e966
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Si_Logging/Si_Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You should have received a copy of the GNU General Public License
using System.Text;
using System.Runtime.CompilerServices;

[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.3", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.4", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand Down Expand Up @@ -486,7 +486,7 @@ public static void Postfix(MP_Strategy __instance, Player __0, Team __1, Team __
if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = string.Empty;
ConsoleLine = "<b>" + HelperMethods.GetTeamColor(__0) + __0.PlayerName + "</color></b> " + (__1 == null ? "joined team " : "changed teams ") + HelperMethods.GetTeamColor(__2) + __2.TeamShortName + "</color>";
ConsoleLine = "<b>" + HelperMethods.GetTeamColor(__0) + __0.PlayerName + "</color></b> " + (__1 == null ? "joined team " : "changed to team ") + HelperMethods.GetTeamColor(__2) + __2.TeamShortName + "</color>";

HelperMethods.SendConsoleMessage(ConsoleLine);
}
Expand Down Expand Up @@ -934,12 +934,6 @@ public static void Prefix(MusicJukeboxHandler __instance, GameMode __0)
initializeRound(ref currTiers);

firedRoundEndOnce = false;

if (Pref_Log_PlayerConsole_Enable.Value)
{
string ConsoleLine = "<b>Round has begun.</b>";
HelperMethods.SendConsoleMessage(ConsoleLine);
}
}
catch (Exception error)
{
Expand Down

0 comments on commit 960e966

Please sign in to comment.