@rpg-engine/long-bow 0.6.44 → 0.6.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32139,8 +32139,8 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
32139
32139
  if (!skillPointsToNextLevel) {
32140
32140
  skillPointsToNextLevel = getSPForLevel(level + 1);
32141
32141
  }
32142
- // Calculate the ratio for progress bar, ensuring it doesn't exceed 100%
32143
- var ratio = Math.min(skillPoints / skillPointsToNextLevel * 100, 100);
32142
+ // Calculate the ratio for progress bar, ensuring it doesn't exceed 100% and resets to 0 on level up
32143
+ var ratio = level > 0 ? Math.min(skillPoints / skillPointsToNextLevel * 100, 100) : 0;
32144
32144
  var skillsBuffsCalc = function skillsBuffsCalc(level, buffAndDebuff) {
32145
32145
  var result = level * (buffAndDebuff / 100);
32146
32146
  if (result > 0) {