Skip to content

Commit

Permalink
Imrpove dog tag generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Sep 30, 2024
1 parent 8a45ca9 commit 08c504a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Fika.Core/Coop/Players/CoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,10 @@ private void GenerateDogtagDetails()
string accountId = AccountId;
string profileId = ProfileId;
string nickname = Profile.Nickname;
string killerAccountId = LastAggressor != null ? LastAggressor.AccountId : string.Empty;
string killerProfileId = LastAggressor != null ? LastAggressor.ProfileId : string.Empty;
string killerNickname = LastAggressor != null ? LastAggressor.Profile.Nickname : string.Empty;
bool hasAggressor = LastAggressor != null;
string killerAccountId = hasAggressor ? LastAggressor.AccountId : string.Empty;
string killerProfileId = hasAggressor ? LastAggressor.ProfileId : string.Empty;
string killerNickname = (hasAggressor && !string.IsNullOrEmpty(LastAggressor.Profile.Nickname)) ? LastAggressor.Profile.Nickname : string.Empty;
EPlayerSide side = Side;
int level = Profile.Info.Level;
DateTime time = EFTDateTimeClass.UtcNow;
Expand Down

0 comments on commit 08c504a

Please sign in to comment.