@rpg-engine/long-bow 0.2.58 → 0.2.59

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.2.58",
3
+ "version": "0.2.59",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -31,7 +31,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
31
31
  if (!skillPointsToNextLevel) {
32
32
  skillPointsToNextLevel = getSPForLevel(level + 1);
33
33
  }
34
- const skillPointsToLevelUp = skillPointsToNextLevel + skillPoints;
34
+
35
35
  const ratio = (skillPoints / skillPointsToNextLevel) * 100;
36
36
 
37
37
  return (
@@ -67,7 +67,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
67
67
  {showSkillPoints && (
68
68
  <SkillDisplayContainer>
69
69
  <SkillPointsDisplay>
70
- {skillPoints}/{skillPointsToLevelUp}
70
+ {skillPoints}/{skillPointsToNextLevel}
71
71
  </SkillPointsDisplay>
72
72
  </SkillDisplayContainer>
73
73
  )}
@@ -5,8 +5,8 @@ export const skillMock = {
5
5
  stamina: {
6
6
  type: SkillType.BasicAttributes,
7
7
  level: 1,
8
- skillPoints: 10,
9
- skillPointsToNextLevel: 80,
8
+ skillPoints: 50,
9
+ skillPointsToNextLevel: 100,
10
10
  },
11
11
  magic: {
12
12
  type: SkillType.BasicAttributes,
@@ -110,11 +110,11 @@ export const skillMock = {
110
110
  skillPoints: 2,
111
111
  skillPointsToNextLevel: 80,
112
112
  },
113
- level: 1,
113
+ level: 2,
114
114
  xpGainRate: 100,
115
- experience: 0,
116
- xpToNextLevel: 40,
117
- ownerType: 'NPC',
115
+ experience: 31,
116
+ xpToNextLevel: 50,
117
+ ownerType: 'Character',
118
118
  owner: '62aebda8785a9f0089a4f758',
119
119
  createdAt: '2022-06-19T06:09:44.661Z',
120
120
  updatedAt: '2022-06-19T06:09:44.661Z',