@rpg-engine/long-bow 0.6.43 → 0.6.44

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.6.43",
3
+ "version": "0.6.44",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -35,7 +35,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
35
35
  skillPointsToNextLevel = getSPForLevel(level + 1);
36
36
  }
37
37
 
38
- // Calculate the ratio, ensuring it doesn't exceed 100%
38
+ // Calculate the ratio for progress bar, ensuring it doesn't exceed 100%
39
39
  const ratio = Math.min((skillPoints / skillPointsToNextLevel) * 100, 100);
40
40
 
41
41
  const skillsBuffsCalc = (level: number, buffAndDebuff: number): string => {
@@ -116,9 +116,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
116
116
  </ProgressBody>
117
117
  {showSkillPoints && (
118
118
  <SkillDisplayContainer>
119
- <SkillPointsDisplay>
120
- {skillPoints}/{skillPointsToNextLevel}
121
- </SkillPointsDisplay>
119
+ <SkillPointsDisplay>{ratio.toFixed(2)}%</SkillPointsDisplay>
122
120
  </SkillDisplayContainer>
123
121
  )}
124
122
  </>