Skip to content

Commit

Permalink
Update for 3.7.0 / 25793
Browse files Browse the repository at this point in the history
  • Loading branch information
DrakiaXYZ committed Aug 13, 2023
1 parent cf44a8f commit 8fcfac0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Helpers/PatrolWayCustom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace DrakiaXYZ.Waypoints.Helpers
public class PatrolWayCustom : PatrolWay
{
// Custom patrol ways will always be suitable
public override bool Suitable(BotOwner bot, IBotData data)
public override bool Suitable(BotOwner bot, IGetProfileData data)
{
return true;
}
Expand Down
6 changes: 3 additions & 3 deletions Patches/WaypointPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected override MethodBase GetTargetMethod()
{
_doorLinkListField = AccessTools.Field(typeof(BotCellController), "navMeshDoorLink_0");

return typeof(BotControllerClass).GetMethod(nameof(BotControllerClass.Init));
return typeof(BotsController).GetMethod("Init");
}

/// <summary>
Expand Down Expand Up @@ -58,9 +58,9 @@ private static void PatchPrefix(BotZone[] botZones)
/// changed the navmesh
/// </summary>
[PatchPostfix]
private static void PatchPostfix(BotCellController ___botCellController_0)
private static void PatchPostfix(BotsController __instance)
{
NavMeshDoorLink[] doorLinkList = _doorLinkListField.GetValue(___botCellController_0) as NavMeshDoorLink[];
NavMeshDoorLink[] doorLinkList = _doorLinkListField.GetValue(__instance.GetCellController()) as NavMeshDoorLink[];
if (doorLinkList != null)
{
foreach (NavMeshDoorLink doorLink in doorLinkList)
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: TarkovVersion(25206)]
[assembly: TarkovVersion(25793)]
4 changes: 2 additions & 2 deletions ServerMod/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "DrakiaXYZ-Waypoints",
"version": "1.2.0",
"version": "1.3.0",
"main": "src/mod.js",
"license": "MIT",
"author": "DrakiaXYZ",
"akiVersion": "3.6.0",
"akiVersion": "~3.7.0",
"scripts": {
"setup": "npm i",
"build": "node ./packageBuild.ts"
Expand Down
2 changes: 1 addition & 1 deletion WaypointsPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace DrakiaXYZ.Waypoints
{
[BepInPlugin("xyz.drakia.waypoints", "DrakiaXYZ-Waypoints", "1.2.0")]
[BepInPlugin("xyz.drakia.waypoints", "DrakiaXYZ-Waypoints", "1.3.0")]
public class WaypointsPlugin : BaseUnityPlugin
{
public static string PluginFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Expand Down

0 comments on commit 8fcfac0

Please sign in to comment.