@rpg-engine/long-bow 0.4.86 → 0.4.87
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 +7 -5
- 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 +7 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/SkillProgressBar.tsx +9 -6
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/mocks/.DS_Store +0 -0
- package/src/mocks/atlas/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/long-bow",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.87",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@rollup/plugin-image": "^2.1.1",
|
|
86
|
-
"@rpg-engine/shared": "^0.8.
|
|
86
|
+
"@rpg-engine/shared": "^0.8.42",
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"font-awesome": "^4.7.0",
|
|
89
89
|
"fs-extra": "^10.1.0",
|
|
@@ -37,11 +37,14 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
|
|
|
37
37
|
skillPointsToNextLevel = getSPForLevel(level + 1);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const skillsBuffsCalc = () => {
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
const skillsBuffsCalc = (level: number, buffAndDebuff: number): string => {
|
|
41
|
+
const result = level * (buffAndDebuff / 100);
|
|
42
|
+
|
|
43
|
+
if (result > 0) {
|
|
44
|
+
return `+${result.toFixed(2)}`;
|
|
45
|
+
} else {
|
|
46
|
+
return `${result.toFixed(2)}`;
|
|
43
47
|
}
|
|
44
|
-
return;
|
|
45
48
|
};
|
|
46
49
|
|
|
47
50
|
return (
|
|
@@ -54,7 +57,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
|
|
|
54
57
|
<TitleNameContainer>
|
|
55
58
|
<TitleNameBuff>{skillName}</TitleNameBuff>
|
|
56
59
|
<TitleNameBuff>
|
|
57
|
-
lv {level} ({skillsBuffsCalc()})
|
|
60
|
+
lv {level} ({skillsBuffsCalc(level, buffAndDebuff)})
|
|
58
61
|
</TitleNameBuff>
|
|
59
62
|
</TitleNameContainer>
|
|
60
63
|
<TitleNameBuffContainer>
|
|
@@ -66,7 +69,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
|
|
|
66
69
|
<TitleNameContainer>
|
|
67
70
|
<TitleNameDebuff>{skillName}</TitleNameDebuff>
|
|
68
71
|
<TitleNameDebuff>
|
|
69
|
-
lv {level} ({skillsBuffsCalc()})
|
|
72
|
+
lv {level} ({skillsBuffsCalc(level, buffAndDebuff)})
|
|
70
73
|
</TitleNameDebuff>
|
|
71
74
|
</TitleNameContainer>
|
|
72
75
|
<div>
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/mocks/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|