From 9e621141699ae18c36a40e3ef84898f87ac6793f Mon Sep 17 00:00:00 2001 From: data-bomb Date: Thu, 11 Jul 2024 18:40:38 -0700 Subject: [PATCH] v0.8.64 Build Patches - OnRoleChanged event patched - Default Units mod patched - Anti-Grief mod patched - Logging mod patched --- Si_AdminMod/Events.cs | 2 +- Si_AdminMod/ModAttributes.cs | 2 +- Si_AntiGrief/Si_AntiGrief.cs | 4 ++-- Si_DefaultUnits/Si_DefaultUnits.cs | 4 ++-- Si_Logging/Si_Logging.cs | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Si_AdminMod/Events.cs b/Si_AdminMod/Events.cs index a0ee263..8ca8e68 100644 --- a/Si_AdminMod/Events.cs +++ b/Si_AdminMod/Events.cs @@ -96,7 +96,7 @@ public Player Player get => _player; set => _player = value ?? throw new ArgumentNullException("Player is required."); } - public MP_Strategy.ETeamRole Role + public GameModeExt.ETeamRole Role { get; set; diff --git a/Si_AdminMod/ModAttributes.cs b/Si_AdminMod/ModAttributes.cs index 7f955eb..dfa40a9 100644 --- a/Si_AdminMod/ModAttributes.cs +++ b/Si_AdminMod/ModAttributes.cs @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License using SilicaAdminMod; using System.Drawing; -[assembly: MelonInfo(typeof(SiAdminMod), "Admin Mod", "2.0.878", "databomb", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(SiAdminMod), "Admin Mod", "2.0.883", "databomb", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] // Color.Cyan diff --git a/Si_AntiGrief/Si_AntiGrief.cs b/Si_AntiGrief/Si_AntiGrief.cs index 9989be4..833b4ed 100644 --- a/Si_AntiGrief/Si_AntiGrief.cs +++ b/Si_AntiGrief/Si_AntiGrief.cs @@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License using System.Linq; using UnityEngine; -[assembly: MelonInfo(typeof(AntiGrief), "Anti-Grief", "1.2.1", "databomb", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(AntiGrief), "Anti-Grief", "1.2.2", "databomb", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -267,7 +267,7 @@ public void OnRoleChanged(object? sender, OnRoleChangedArgs args) } // if a player switches to non-infantry it will despawn their alien unit - if (args.Role == MP_Strategy.ETeamRole.INFANTRY) + if (args.Role == GameModeExt.ETeamRole.INFANTRY) { return; } diff --git a/Si_DefaultUnits/Si_DefaultUnits.cs b/Si_DefaultUnits/Si_DefaultUnits.cs index 15ef097..6fb7911 100644 --- a/Si_DefaultUnits/Si_DefaultUnits.cs +++ b/Si_DefaultUnits/Si_DefaultUnits.cs @@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License using SilicaAdminMod; using System.Linq; -[assembly: MelonInfo(typeof(DefaultUnits), "Default Spawn Units", "1.0.1", "databomb", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(DefaultUnits), "Default Spawn Units", "1.0.2", "databomb", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -149,7 +149,7 @@ public static void Prefix(MP_Strategy __instance, UnityEngine.GameObject __resul // update the tech tier teamTechTiers[playerTeam.Index] = playerTeam.CurrentTechnologyTier; - StrategyTeamSetup teamSetup = __instance.GetStrategyTeamSetup(playerTeam); + BaseTeamSetup teamSetup = __instance.GetTeamSetup(playerTeam); if (teamSetup == null) { MelonLogger.Warning("Could not find StrategyTeamSetup for Team: " + playerTeam.TeamName); diff --git a/Si_Logging/Si_Logging.cs b/Si_Logging/Si_Logging.cs index 8108b70..41a3e83 100644 --- a/Si_Logging/Si_Logging.cs +++ b/Si_Logging/Si_Logging.cs @@ -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.2", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(HL_Logging), "Half-Life Logger", "1.4.3", "databomb&zawedcvg", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -511,11 +511,11 @@ public void OnRoleChanged(object? sender, OnRoleChangedArgs args) int userID = Math.Abs(player.GetInstanceID()); string role; - if (args.Role == MP_Strategy.ETeamRole.COMMANDER) + if (args.Role == GameModeExt.ETeamRole.COMMANDER) { role = "Commander"; } - else if (args.Role == MP_Strategy.ETeamRole.INFANTRY) + else if (args.Role == GameModeExt.ETeamRole.INFANTRY) { role = "Infantry"; } else