Skip to content

Commit

Permalink
v0.8.64 Build Patches
Browse files Browse the repository at this point in the history
- OnRoleChanged event patched
- Default Units mod patched
- Anti-Grief mod patched
- Logging mod patched
  • Loading branch information
data-bomb committed Jul 12, 2024
1 parent ad45c5e commit 9e62114
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Si_AdminMod/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Si_AdminMod/ModAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Si_AntiGrief/Si_AntiGrief.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions Si_DefaultUnits/Si_DefaultUnits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 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.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")]

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9e62114

Please sign in to comment.