Skip to content

Commit

Permalink
Fix deps (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
yonilerner authored Jan 16, 2024
1 parent d5b0473 commit 8c6d792
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 16 deletions.
3 changes: 0 additions & 3 deletions CounterStrikeSharp/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions CounterStrikeSharp/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion RetakesAllocator/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static ulong GetSteamId(CCSPlayerController? player)

public static CsTeam GetTeam(CCSPlayerController player)
{
return (CsTeam) player.TeamNum;
return player.Team;
}

public static void RemoveArmor(CCSPlayerController player)
Expand Down
10 changes: 5 additions & 5 deletions RetakesAllocator/RetakesAllocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace RetakesAllocator;

[MinimumApiVersion(142)]
[MinimumApiVersion(147)]
public class RetakesAllocator : BasePlugin
{
public override string ModuleName => "Retakes Allocator Plugin";
Expand Down Expand Up @@ -134,7 +134,7 @@ private void HandleWeaponCommand(CCSPlayerController? player, CommandInfo comman
}

var playerId = Helpers.GetSteamId(player);
var currentTeam = (CsTeam) player!.TeamNum;
var currentTeam = player!.Team;

var result = OnWeaponCommandHelper.Handle(
Helpers.CommandInfoToArgList(commandInfo),
Expand Down Expand Up @@ -183,7 +183,7 @@ public void OnAwpCommand(CCSPlayerController? player, CommandInfo commandInfo)
}

var playerId = Helpers.GetSteamId(player);
var currentTeam = (CsTeam) player!.TeamNum;
var currentTeam = player!.Team;

var currentPreferredSetting = Queries.GetUserSettings(playerId)
?.GetWeaponPreference(currentTeam, WeaponAllocationType.Preferred);
Expand All @@ -209,7 +209,7 @@ public void OnRemoveWeaponCommand(CCSPlayerController? player, CommandInfo comma
}

var playerId = Helpers.GetSteamId(player);
var currentTeam = (CsTeam) player!.TeamNum;
var currentTeam = player!.Team;

var result = OnWeaponCommandHelper.Handle(
Helpers.CommandInfoToArgList(commandInfo),
Expand Down Expand Up @@ -262,7 +262,7 @@ public HookResult OnPostItemPurchase(EventItemPurchase @event, GameEventInfo inf
}

var item = Utils.ToEnum<CsItem>(@event.Weapon);
var team = (CsTeam) player.TeamNum;
var team = player.Team;
var playerId = Helpers.GetSteamId(player);
var isPreferred = WeaponHelpers.IsPreferred(team, item);

Expand Down
4 changes: 1 addition & 3 deletions RetakesAllocator/RetakesAllocator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
</PropertyGroup>

<ItemGroup>
<Reference Include="CounterStrikeSharp.API">
<HintPath>..\CounterStrikeSharp\addons\counterstrikesharp\api\CounterStrikeSharp.API.dll</HintPath>
</Reference>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.147" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion RetakesAllocatorCore/PluginInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace RetakesAllocatorCore;

public static class PluginInfo
{
public const string Version = "1.2.1";
public const string Version = "1.2.2";

public static readonly string LogPrefix = $"[RetakesAllocator {Version}] ";
public static readonly string MessagePrefix = $"[{ChatColors.Green}Retakes{ChatColors.White}] ";
Expand Down
2 changes: 1 addition & 1 deletion RetakesAllocatorCore/RetakesAllocatorCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.142" />
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.147" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.14"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.14">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 8c6d792

Please sign in to comment.