Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/data-bomb/Silica
Browse files Browse the repository at this point in the history
  • Loading branch information
data-bomb committed Nov 16, 2024
2 parents 77aab4f + ba6c226 commit c42b67c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 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.13", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.14", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand Down Expand Up @@ -950,10 +950,15 @@ public static void Prefix(MusicJukeboxHandler __instance, GameMode __0)
{
try
{
MP_Strategy strategyInstance = GameObject.FindObjectOfType<MP_Strategy>();
MP_Strategy.ETeamsVersus versusMode = strategyInstance.TeamsVersus;
string RoundStartLogLine = "World triggered \"Round_Start\" (gamemode \"" + GameMode.CurrentGameMode.ToString().Split(' ')[0] + "\")";

string RoundStartLogLine = "World triggered \"Round_Start\" (gametype \"" + versusMode.ToString() + "\")";
if (GameMode.CurrentGameMode is MP_Strategy)
{
MP_Strategy strategyInstance = GameObject.FindObjectOfType<MP_Strategy>();
MP_Strategy.ETeamsVersus versusMode = strategyInstance.TeamsVersus;
RoundStartLogLine += " (gametype \"" + versusMode.ToString() + "\")";
}

PrintLogLine(RoundStartLogLine);
initializeRound(ref currTiers);

Expand Down

0 comments on commit c42b67c

Please sign in to comment.