@rpg-engine/long-bow 0.8.79 → 0.8.80

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.8.79",
3
+ "version": "0.8.80",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,4 +1,9 @@
1
- import { ISkill, ISkillDetails, getXPForLevel } from '@rpg-engine/shared';
1
+ import {
2
+ ISkill,
3
+ ISkillDetails,
4
+ getSPForLevel,
5
+ getXPForLevel,
6
+ } from '@rpg-engine/shared';
2
7
  import React from 'react';
3
8
  import styled from 'styled-components';
4
9
  import { uiColors } from '../constants/uiColors';
@@ -113,7 +118,7 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
113
118
  level={skillDetails.level || 0}
114
119
  skillPoints={Math.round(skillDetails.skillPoints) || 0}
115
120
  skillPointsToNextLevel={
116
- Math.round(skillDetails.skillPointsToNextLevel) || 0
121
+ Math.round(getSPForLevel(skillDetails.level + 1)) || 0
117
122
  }
118
123
  texturePath={value}
119
124
  atlasIMG={atlasIMG}