mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 20:50:44 -05:00
30150
This commit is contained in:
parent
6ae825ee6a
commit
d452c24c9b
@ -22,7 +22,7 @@ git config --local user.email "USERNAME@SOMETHING.com"
|
||||
```
|
||||
|
||||
## Requirements
|
||||
- Escape From Tarkov 29997
|
||||
- Escape From Tarkov 30150
|
||||
- Visual Studio Code -OR- Visual Studio 2022
|
||||
- .NET 6 SDK
|
||||
- [PowerShell v7](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
|
||||
|
@ -6,7 +6,7 @@ using EFT.Vehicle;
|
||||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using BTRDialog = EFT.UI.TraderDialogScreen.GClass3153;
|
||||
using BTRDialog = EFT.UI.TraderDialogScreen.GClass3152;
|
||||
|
||||
namespace SPT.Custom.BTR.Patches
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ namespace SPT.Custom.Patches
|
||||
var player = Singleton<GameWorld>.Instance.MainPlayer;
|
||||
if (profileId == player?.Profile.Id)
|
||||
{
|
||||
GClass3127.Instance.CloseAllScreensForced();
|
||||
GClass3126.Instance.CloseAllScreensForced();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -17,8 +17,8 @@ namespace SPT.Custom.Patches
|
||||
public RagfairFeePatch()
|
||||
{
|
||||
// Remember to update prefix parameter if below lines are broken
|
||||
_ = nameof(GClass3087.IsAllSelectedItemSame);
|
||||
_ = nameof(GClass3087.AutoSelectSimilar);
|
||||
_ = nameof(GClass3086.IsAllSelectedItemSame);
|
||||
_ = nameof(GClass3086.AutoSelectSimilar);
|
||||
}
|
||||
|
||||
protected override MethodBase GetTargetMethod()
|
||||
@ -34,14 +34,14 @@ namespace SPT.Custom.Patches
|
||||
/// <param name="___double_0">RequirementsPrice</param>
|
||||
/// <param name="___bool_0">SellInOnePiece</param>
|
||||
[PatchPrefix]
|
||||
private static void PatchPrefix(ref Item ___item_0, ref GClass3087 ___gclass3087_0, ref double ___double_0, ref bool ___bool_0)
|
||||
private static void PatchPrefix(ref Item ___item_0, ref GClass3086 ___gclass3086_0, ref double ___double_0, ref bool ___bool_0)
|
||||
{
|
||||
RequestHandler.PutJson("/client/ragfair/offerfees", new
|
||||
{
|
||||
id = ___item_0.Id,
|
||||
tpl = ___item_0.TemplateId,
|
||||
count = ___gclass3087_0.OfferItemCount,
|
||||
fee = Mathf.CeilToInt((float)GClass2103.CalculateTaxPrice(___item_0, ___gclass3087_0.OfferItemCount, ___double_0, ___bool_0))
|
||||
count = ___gclass3086_0.OfferItemCount,
|
||||
fee = Mathf.CeilToInt((float)GClass2102.CalculateTaxPrice(___item_0, ___gclass3086_0.OfferItemCount, ___double_0, ___bool_0))
|
||||
}.ToJson());
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ using EFT;
|
||||
using EFT.UI;
|
||||
using HarmonyLib;
|
||||
using System.Reflection;
|
||||
using DialogControlClass = GClass1971;
|
||||
using DialogControlClass = GClass1970;
|
||||
|
||||
namespace SPT.Debugging.Patches
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ namespace SPT.Debugging.Patches
|
||||
|
||||
public SptSpawnHelper()
|
||||
{
|
||||
IEnumerable<ISpawnPoint> locationSpawnPoints = GClass2946.CreateFromScene();
|
||||
IEnumerable<ISpawnPoint> locationSpawnPoints = GClass2945.CreateFromScene();
|
||||
|
||||
var playerSpawns = locationSpawnPoints.Where(x => x.Categories.HasFlag(ESpawnCategoryMask.Player)).ToList();
|
||||
this.playerSpawnPoints = locationSpawnPoints.Where(x => x.Categories.HasFlag(ESpawnCategoryMask.Player)).ToList();
|
||||
|
@ -124,7 +124,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
||||
.Single(field => field.FieldType == typeof(MatchmakerPlayerControllerClass))
|
||||
?.GetValue(menuController) as MatchmakerPlayerControllerClass;
|
||||
|
||||
var gclass = new MatchmakerOfflineRaidScreen.GClass3178(profile?.Info, ref raidSettings, matchmakerPlayersController, ESessionMode.Regular);
|
||||
var gclass = new MatchmakerOfflineRaidScreen.GClass3177(profile?.Info, ref raidSettings, matchmakerPlayersController, ESessionMode.Regular);
|
||||
|
||||
gclass.OnShowNextScreen += LoadOfflineRaidNextScreen;
|
||||
|
||||
|
@ -12,7 +12,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
||||
// TODO: REMAP/UPDATE GCLASS REF
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
return AccessTools.Method(typeof(GClass1799), nameof(GClass1799.OnEnemyKill));
|
||||
return AccessTools.Method(typeof(GClass1798), nameof(GClass1798.OnEnemyKill));
|
||||
}
|
||||
|
||||
[PatchPrefix]
|
||||
|
@ -10,9 +10,9 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using static BackendConfigSettingsClass;
|
||||
using TraderServiceClass = GClass1805;
|
||||
using QuestDictClass = GClass2145<string>;
|
||||
using StandingListClass = GClass2147<float>;
|
||||
using TraderServiceClass = GClass1804;
|
||||
using QuestDictClass = GClass2144<string>;
|
||||
using StandingListClass = GClass2146<float>;
|
||||
|
||||
namespace SPT.SinglePlayer.Utils.TraderServices
|
||||
{
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user