Skip to content

Commit

Permalink
Log score for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-r-elp committed Jun 16, 2024
1 parent 0330223 commit dd7d500
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public override void Handle(IPlayer sender, LevelFinishedPacket packet)
{
_logger.Debug(
$"Handling packet of type '{nameof(LevelFinishedPacket)}' " +
$"(SenderId={sender.ConnectionId})."
$"(SenderId={sender.ConnectionId}, HasValue0={packet.HasValue0}, HasAnyResult={packet.Results.HasAnyResult()}, " +
$"ModifiedScore={(packet.HasValue0 && packet.Results.HasAnyResult() ? packet.Results.LevelCompletionResults.ModifiedScore : "NoValue/NoResults" )}, " +
$"MultipliedScore={(packet.HasValue0 && packet.Results.HasAnyResult() ? packet.Results.LevelCompletionResults.MultipliedScore : "NoValue/NoResults")})."
);

_gameplayManager.HandleLevelFinished(sender, packet);
Expand Down

0 comments on commit dd7d500

Please sign in to comment.