Improved comment for CalculateLevel
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user