@rpg-engine/long-bow 0.1.90 → 0.1.91

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.1.90",
3
+ "version": "0.1.91",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -70,8 +70,10 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
70
70
  skillName={_.capitalize(key)}
71
71
  bgColor={skillCategoryColor}
72
72
  level={skillDetails.level || 0}
73
- skillPoints={skillDetails.skillPoints || 0}
74
- skillPointsToNextLevel={skillDetails.skillPointsToNextLevel || 0}
73
+ skillPoints={Math.round(skillDetails.skillPoints) || 0}
74
+ skillPointsToNextLevel={
75
+ Math.round(skillDetails.skillPointsToNextLevel) || 0
76
+ }
75
77
  texturePath={value}
76
78
  />
77
79
  );
@@ -94,9 +96,9 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
94
96
  <SkillProgressBar
95
97
  skillName={'Level'}
96
98
  bgColor={colors.navyBlue}
97
- level={skill.level || 0}
98
- skillPoints={skill.experience || 0}
99
- skillPointsToNextLevel={skill.xpToNextLevel || 0}
99
+ level={Math.round(skill.level) || 0}
100
+ skillPoints={Math.round(skill.experience) || 0}
101
+ skillPointsToNextLevel={Math.round(skill.xpToNextLevel) || 0}
100
102
  texturePath={'swords/broad-sword.png'}
101
103
  />
102
104