Methods
calculateExperience(level: number): number
Calculates the total experience required to reach a specified level.
Responsibility: Returns the total amount of experience required for the specified level based on the base experience and experience multiplier.
calculateLevel(experience: number): number
Determines the current level based on the current experience.
Responsibility: Returns the current level based on the provided current experience, base experience, and experience multiplier.
calculateExperienceRemaining(level: number, experience: number): number
Computes the remaining experience to reach the next level based on the current level and experience.
Responsibility: Returns the amount of experience remaining to achieve the next level based on the provided current level, current experience, base experience, and experience multiplier.
calculateExperienceProgress(level: number, experience: number)
Calculates the progress towards the next level based on the current level and experience.
Responsibility: Returns an object with fractional and whole values representing the progress towards the next level based on the provided current level and experience.
Last updated