fix prestigeRequestTypes and getting items transfered
This commit is contained in:
@@ -31,7 +31,7 @@ public class PrestigeCallbacks(
|
||||
/// <param name="info"></param>
|
||||
/// <param name="sessionID"></param>
|
||||
/// <returns></returns>
|
||||
public string ObtainPrestige(string url, List<ObtainPrestigeRequest> info, string sessionID)
|
||||
public string ObtainPrestige(string url, ObtainPrestigeRequestList info, string sessionID)
|
||||
{
|
||||
_prestigeController.ObtainPrestige(sessionID, info);
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public class PrestigeController(
|
||||
/// <returns></returns>
|
||||
public void ObtainPrestige(
|
||||
string sessionId,
|
||||
List<ObtainPrestigeRequest> request)
|
||||
ObtainPrestigeRequestList request)
|
||||
{
|
||||
var prePrestigeProfileClone = _cloner.Clone(_profileHelper.GetFullProfile(sessionId));
|
||||
var prePrestigePmc = prePrestigeProfileClone.CharacterData.PmcData;
|
||||
@@ -123,7 +123,7 @@ public class PrestigeController(
|
||||
|
||||
// Flag profile as having achieved this prestige level
|
||||
newProfile.CharacterData.PmcData.Prestige[currentPrestigeData.Id] = _timeUtil.GetTimeStamp();
|
||||
newProfile.CharacterData.PmcData.Info.PrestigeLevel++;
|
||||
newProfile.CharacterData.PmcData.Info.PrestigeLevel = indexOfPrestigeObtained;
|
||||
|
||||
if (request is not null)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Core.Models.Utils;
|
||||
|
||||
namespace Core.Models.Eft.Prestige
|
||||
{
|
||||
public record ObtainPrestigeRequest
|
||||
public class ObtainPrestigeRequestList : List<ObtainPrestigeRequest>, IRequestData
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public record ObtainPrestigeRequest : IRequestData
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
@@ -21,5 +27,8 @@ namespace Core.Models.Eft.Prestige
|
||||
|
||||
[JsonPropertyName("z")]
|
||||
public int Z { get; set; }
|
||||
|
||||
[JsonPropertyName("r")]
|
||||
public string R { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,8 @@ public class PrestigeStaticRouter : StaticRouter
|
||||
info,
|
||||
sessionID,
|
||||
output
|
||||
) => _presetCallbacks.ObtainPrestige(url, info as List<ObtainPrestigeRequest>, sessionID))
|
||||
) => _presetCallbacks.ObtainPrestige(url, info as ObtainPrestigeRequestList, sessionID)
|
||||
, typeof(ObtainPrestigeRequestList))
|
||||
]
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user