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

Update class refs to get project building

This commit is contained in:
Dev 2024-04-15 12:04:31 +01:00
parent ef08750adb
commit 91bc0ed1e0
10 changed files with 18 additions and 18 deletions

View File

@ -6,7 +6,7 @@ using EFT.Vehicle;
using HarmonyLib;
using System;
using System.Reflection;
using BTRDialog = EFT.UI.TraderDialogScreen.GClass3149;
using BTRDialog = EFT.UI.TraderDialogScreen.GClass3151;
namespace Aki.Custom.BTR.Patches
{

View File

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

View File

@ -17,8 +17,8 @@ namespace Aki.Custom.Patches
public RagfairFeePatch()
{
// Remember to update prefix parameter if below lines are broken
_ = nameof(GClass3083.IsAllSelectedItemSame);
_ = nameof(GClass3083.AutoSelectSimilar);
_ = nameof(GClass3085.IsAllSelectedItemSame);
_ = nameof(GClass3085.AutoSelectSimilar);
}
protected override MethodBase GetTargetMethod()
@ -30,18 +30,18 @@ namespace Aki.Custom.Patches
/// Calculate tax to charge player and send to server before the offer is sent
/// </summary>
/// <param name="___item_0">Item sold</param>
/// <param name="___gclass3083_0">OfferItemCount</param>
/// <param name="___gclass3085_0">OfferItemCount</param>
/// <param name="___double_0">RequirementsPrice</param>
/// <param name="___bool_0">SellInOnePiece</param>
[PatchPrefix]
private static void PatchPrefix(ref Item ___item_0, ref GClass3083 ___gclass3083_0, ref double ___double_0, ref bool ___bool_0)
private static void PatchPrefix(ref Item ___item_0, ref GClass3085 ___gclass3085_0, ref double ___double_0, ref bool ___bool_0)
{
RequestHandler.PutJson("/client/ragfair/offerfees", new
{
id = ___item_0.Id,
tpl = ___item_0.TemplateId,
count = ___gclass3083_0.OfferItemCount,
fee = Mathf.CeilToInt((float)GClass2100.CalculateTaxPrice(___item_0, ___gclass3083_0.OfferItemCount, ___double_0, ___bool_0))
count = ___gclass3085_0.OfferItemCount,
fee = Mathf.CeilToInt((float)GClass2101.CalculateTaxPrice(___item_0, ___gclass3085_0.OfferItemCount, ___double_0, ___bool_0))
}.ToJson());
}
}

View File

@ -5,7 +5,7 @@ using EFT;
using EFT.UI;
using HarmonyLib;
using System.Reflection;
using DialogControlClass = GClass1968;
using DialogControlClass = GClass1969;
namespace Aki.Debugging.Patches
{

View File

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using ExitSettingsClass = GClass1233;
using ExitSettingsClass = GClass1234;
namespace Aki.Debugging.Patches
{

View File

@ -21,7 +21,7 @@ namespace Aki.Debugging.Patches
public SptSpawnHelper()
{
IEnumerable<ISpawnPoint> locationSpawnPoints = GClass2942.CreateFromScene();
IEnumerable<ISpawnPoint> locationSpawnPoints = GClass2944.CreateFromScene();
var playerSpawns = locationSpawnPoints.Where(x => x.Categories.HasFlag(ESpawnCategoryMask.Player)).ToList();
this.playerSpawnPoints = locationSpawnPoints.Where(x => x.Categories.HasFlag(ESpawnCategoryMask.Player)).ToList();
@ -62,7 +62,7 @@ namespace Aki.Debugging.Patches
}
[PatchPrefix]
public static bool PatchPrefix(GClass1480 __instance, GClass590 data)
public static bool PatchPrefix(GClass1481 __instance, GClass591 data)
{
var firstBotRole = data.Profiles[0].Info.Settings.Role;

View File

@ -44,7 +44,7 @@ namespace Aki.SinglePlayer.Patches.RaidFix
/// BotsPresets.GetNewProfile()
/// </summary>
[PatchPrefix]
private static bool PatchPrefix(ref Task<Profile> __result, BotsPresets __instance, List<Profile> ___list_0, GClass590 data, ref bool withDelete)
private static bool PatchPrefix(ref Task<Profile> __result, BotsPresets __instance, List<Profile> ___list_0, GClass591 data, ref bool withDelete)
{
/*
When client wants new bot and GetNewProfile() return null (if not more available templates or they don't satisfy by Role and Difficulty condition)

View File

@ -123,7 +123,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode
.Single(field => field.FieldType == typeof(MatchmakerPlayerControllerClass))
?.GetValue(menuController) as MatchmakerPlayerControllerClass;
var gclass = new MatchmakerOfflineRaidScreen.GClass3174(profile?.Info, ref raidSettings, matchmakerPlayersController);
var gclass = new MatchmakerOfflineRaidScreen.GClass3176(profile?.Info, ref raidSettings, matchmakerPlayersController);
gclass.OnShowNextScreen += LoadOfflineRaidNextScreen;

View File

@ -12,7 +12,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode
// TODO: REMAP/UPDATE GCLASS REF
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(GClass1798), nameof(GClass1798.OnEnemyKill));
return AccessTools.Method(typeof(GClass1799), nameof(GClass1799.OnEnemyKill));
}
[PatchPrefix]

View File

@ -10,9 +10,9 @@ using System.Linq;
using System.Reflection;
using UnityEngine;
using static BackendConfigSettingsClass;
using TraderServiceClass = GClass1802;
using QuestDictClass = GClass2141<string>;
using StandingListClass = GClass2143<float>;
using TraderServiceClass = GClass1803;
using QuestDictClass = GClass2143<string>;
using StandingListClass = GClass2145<float>;
namespace Aki.SinglePlayer.Utils.TraderServices
{