mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 17:30:43 -05:00
Patch comment changes
This commit is contained in:
parent
896b264096
commit
9e35049e44
@ -30,7 +30,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get profile from other patch (GetProfileAtEndOfRaidPatch)
|
/// Get profile from other patch (GetProfileAtEndOfRaidPatch)
|
||||||
/// if our profile is savage Create new Session.AllProfiles and pass in our own profile to allow us to use the ScavengerInventoryScreen
|
/// If our profile is savage Create new Session.AllProfiles and pass in our own profile to allow us to use the ScavengerInventoryScreen
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FixSavageInventoryScreenPatch : ModulePatch
|
public class FixSavageInventoryScreenPatch : ModulePatch
|
||||||
{
|
{
|
||||||
@ -44,11 +44,13 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
|||||||
{
|
{
|
||||||
Profile profile = new(GetProfileAtEndOfRaidPatch.ProfileDescriptor);
|
Profile profile = new(GetProfileAtEndOfRaidPatch.ProfileDescriptor);
|
||||||
|
|
||||||
|
// Player is PMC, skip patch
|
||||||
if (profile.Side != EPlayerSide.Savage)
|
if (profile.Side != EPlayerSide.Savage)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only do below when player is a scav
|
||||||
var session = (ProfileEndpointFactoryAbstractClass)___iSession;
|
var session = (ProfileEndpointFactoryAbstractClass)___iSession;
|
||||||
session.AllProfiles =
|
session.AllProfiles =
|
||||||
[
|
[
|
||||||
@ -57,7 +59,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
|||||||
];
|
];
|
||||||
session.ProfileOfPet.LearnAll();
|
session.ProfileOfPet.LearnAll();
|
||||||
|
|
||||||
// make a request to the server, so it knows of the items we might transfer
|
// Send scav profile to server so it knows of the items we might transfer
|
||||||
RequestHandler.PutJson("/raid/profile/scavsave",
|
RequestHandler.PutJson("/raid/profile/scavsave",
|
||||||
GetProfileAtEndOfRaidPatch.ProfileDescriptor.ToUnparsedData([]).JObject.ToString());
|
GetProfileAtEndOfRaidPatch.ProfileDescriptor.ToUnparsedData([]).JObject.ToString());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user