Improved comment for CalculateLevel

This commit is contained in:
Chomp
2025-03-11 20:30:41 +00:00
parent 736355954a
commit 303cfa0967
@@ -9,10 +9,13 @@ public class PlayerService(
)
{
/// <summary>
/// Get level of player
/// Calculates the current level of a player based on their accumulated experience points.
/// This method iterates through an experience table to determine the highest level achieved
/// by comparing the player's experience against cumulative thresholds.
/// </summary>
/// <param name="pmcData"> Player profile </param>
/// <returns> Level of the player </returns>
/// <returns> The calculated level of the player as an integer, or null if the level cannot be determined.
/// This value is also assigned to <see cref="PmcData.Info.Level"/> within the provided profile. </returns>
public int? CalculateLevel(PmcData pmcData)
{
var accExp = 0;