0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 02:30:44 -05:00

Update to new game version 22561 (!8)

Co-authored-by: Kaeno
Reviewed-on: SPT-AKI/Modules#8
Co-authored-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
Co-committed-by: Kaeno <kaeno@noreply.dev.sp-tarkov.com>
This commit is contained in:
Kaeno 2023-04-05 17:42:39 +00:00 committed by Terkoiz
parent f9e7681fec
commit 7bf0dc8a47
6 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ namespace Aki.Core.Patches
{ {
try try
{ {
var type = PatchConstants.EftTypes.Single(t => t.Name == "Class228"); var type = PatchConstants.EftTypes.Single(t => t.Name == "Class229");
var value = Traverse.Create(type).Field("TransportPrefixes").GetValue<Dictionary<ETransportProtocolType, string>>(); var value = Traverse.Create(type).Field("TransportPrefixes").GetValue<Dictionary<ETransportProtocolType, string>>();
value[ETransportProtocolType.HTTPS] = "http://"; value[ETransportProtocolType.HTTPS] = "http://";
value[ETransportProtocolType.WSS] = "ws://"; value[ETransportProtocolType.WSS] = "ws://";

View File

@ -33,7 +33,7 @@ namespace Aki.Custom.Patches
var player = Singleton<GameWorld>.Instance.MainPlayer; var player = Singleton<GameWorld>.Instance.MainPlayer;
if (profileId == player?.Profile.Id) if (profileId == player?.Profile.Id)
{ {
GClass2727.Instance.CloseAllScreensForced(); GClass2730.Instance.CloseAllScreensForced();
} }
return true; return true;

View File

@ -7,8 +7,8 @@ namespace Aki.PrePatch
{ {
public static IEnumerable<string> TargetDLLs { get; } = new[] { "Assembly-CSharp.dll" }; public static IEnumerable<string> TargetDLLs { get; } = new[] { "Assembly-CSharp.dll" };
public static long sptUsecValue = 0x80000000; public static int sptUsecValue = 32;
public static long sptBearValue = 0x100000000; public static int sptBearValue = 33;
public static void Patch(ref AssemblyDefinition assembly) public static void Patch(ref AssemblyDefinition assembly)
{ {

View File

@ -2,7 +2,7 @@
using HarmonyLib; using HarmonyLib;
using System; using System;
using System.Reflection; using System.Reflection;
using TraderInfo = EFT.Profile.GClass1664; using TraderInfo = EFT.Profile.GClass1667;
namespace Aki.SinglePlayer.Patches.RaidFix namespace Aki.SinglePlayer.Patches.RaidFix
{ {

View File

@ -112,8 +112,8 @@ namespace Aki.SinglePlayer.Patches.ScavMode
var profile = PatchConstants.BackEndSession.Profile; var profile = PatchConstants.BackEndSession.Profile;
var menuController = (object)GetMenuController(); var menuController = (object)GetMenuController();
var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue<RaidSettings>(); var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue<RaidSettings>();
var matchmakerPlayersController = Traverse.Create(menuController).Field("gclass2780_0").GetValue<GClass2780>(); var matchmakerPlayersController = Traverse.Create(menuController).Field("gclass2783_0").GetValue<GClass2783>();
var gclass = new MatchmakerOfflineRaidScreen.GClass2769(profile?.Info, ref raidSettings, matchmakerPlayersController); var gclass = new MatchmakerOfflineRaidScreen.GClass2772(profile?.Info, ref raidSettings, matchmakerPlayersController);
gclass.OnShowNextScreen += LoadOfflineRaidNextScreen; gclass.OnShowNextScreen += LoadOfflineRaidNextScreen;

Binary file not shown.