Skip to content

Commit

Permalink
Use new serializer & set ProfileId (Fixes: #204)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchangelWTF committed Dec 4, 2024
1 parent 3df0911 commit 29ba839
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2283,14 +2283,15 @@ private async Task SavePlayer(CoopPlayer player, ExitStatus exitStatus, string e

GClass1924 parameters = new()
{
profile = Profile_0.ToUnparsedData([]),
profile = new GClass1962(this.Profile_0, GClass1971.Instance).ToUnparsedData(),
result = exitStatus,
killerId = gparam_0.Player.KillerId,
killerAid = gparam_0.Player.KillerAccountId,
exitName = exitName,
inSession = true,
favorite = (Profile_0.Info.Side == EPlayerSide.Savage),
playTime = (int)playTimeDuration.Duration().TotalSeconds
playTime = (int)playTimeDuration.Duration().TotalSeconds,
ProfileId = Profile_0.Id
};

try
Expand All @@ -2301,6 +2302,7 @@ private async Task SavePlayer(CoopPlayer player, ExitStatus exitStatus, string e
{
FikaPlugin.Instance.FikaLogger.LogError("Exception caught when saving: " + ex.Message);
}

hasSaved = true;
}

Expand Down

0 comments on commit 29ba839

Please sign in to comment.