@rpg-engine/long-bow 0.1.88 → 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/dist/long-bow.cjs.development.js +10 -9
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +10 -9
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -1
- package/src/components/SkillProgressBar.tsx +1 -2
- package/src/components/SkillsContainer.tsx +11 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/long-bow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.91",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"fs-extra": "^10.1.0",
|
|
89
89
|
"lodash": "^4.17.21",
|
|
90
|
+
"lodash-es": "^4.17.21",
|
|
90
91
|
"mobx": "^6.6.0",
|
|
91
92
|
"mobx-react": "^7.5.0",
|
|
92
93
|
"react-draggable": "^4.4.5",
|
|
@@ -81,7 +81,7 @@ const SpriteContainer = styled.div`
|
|
|
81
81
|
`;
|
|
82
82
|
|
|
83
83
|
const SkillDisplayContainer = styled.div`
|
|
84
|
-
margin:
|
|
84
|
+
margin: 0 auto;
|
|
85
85
|
|
|
86
86
|
p {
|
|
87
87
|
margin: 0;
|
|
@@ -120,5 +120,4 @@ const ProgressTitle = styled.div`
|
|
|
120
120
|
span {
|
|
121
121
|
font-size: 0.6rem;
|
|
122
122
|
}
|
|
123
|
-
margin-top: 10px;
|
|
124
123
|
`;
|
|
@@ -66,11 +66,14 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
|
|
|
66
66
|
|
|
67
67
|
output.push(
|
|
68
68
|
<SkillProgressBar
|
|
69
|
+
key={key}
|
|
69
70
|
skillName={_.capitalize(key)}
|
|
70
71
|
bgColor={skillCategoryColor}
|
|
71
72
|
level={skillDetails.level || 0}
|
|
72
|
-
skillPoints={skillDetails.skillPoints || 0}
|
|
73
|
-
skillPointsToNextLevel={
|
|
73
|
+
skillPoints={Math.round(skillDetails.skillPoints) || 0}
|
|
74
|
+
skillPointsToNextLevel={
|
|
75
|
+
Math.round(skillDetails.skillPointsToNextLevel) || 0
|
|
76
|
+
}
|
|
74
77
|
texturePath={value}
|
|
75
78
|
/>
|
|
76
79
|
);
|
|
@@ -93,9 +96,9 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
|
|
|
93
96
|
<SkillProgressBar
|
|
94
97
|
skillName={'Level'}
|
|
95
98
|
bgColor={colors.navyBlue}
|
|
96
|
-
level={skill.level || 0}
|
|
97
|
-
skillPoints={skill.experience || 0}
|
|
98
|
-
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}
|
|
99
102
|
texturePath={'swords/broad-sword.png'}
|
|
100
103
|
/>
|
|
101
104
|
|
|
@@ -162,7 +165,7 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
|
|
|
162
165
|
const SkillsDraggableContainer = styled(DraggableContainer)`
|
|
163
166
|
border: 1px solid black;
|
|
164
167
|
width: 400px;
|
|
165
|
-
height:
|
|
168
|
+
height: 90%;
|
|
166
169
|
overflow-y: scroll;
|
|
167
170
|
.DraggableContainer__TitleContainer-sc-184mpyl-2 {
|
|
168
171
|
width: auto;
|
|
@@ -173,9 +176,9 @@ const SkillsDraggableContainer = styled(DraggableContainer)`
|
|
|
173
176
|
const SkillSplitDiv = styled.div`
|
|
174
177
|
width: 100%;
|
|
175
178
|
font-size: 11px;
|
|
176
|
-
margin-top: 10px;
|
|
177
179
|
hr {
|
|
178
|
-
margin:
|
|
180
|
+
margin: 0;
|
|
181
|
+
margin-bottom: 1rem;
|
|
179
182
|
padding: 0px;
|
|
180
183
|
}
|
|
181
184
|
p {
|