@rpg-engine/long-bow 0.4.91 → 0.4.93
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/components/PartySystem/mockedConstantes/mockedValues.d.ts +1 -2
- package/dist/long-bow.cjs.development.js +8 -7
- 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 +8 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/PartySystem/PartyManager/PartyManager.tsx +1 -1
- package/src/components/PartySystem/PartyManager/PartyManagerRows.tsx +0 -1
- package/src/components/PartySystem/mockedConstantes/mockedValues.tsx +1 -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.93",
|
|
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.46",
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"font-awesome": "^4.7.0",
|
|
89
89
|
"fs-extra": "^10.1.0",
|
|
@@ -2,7 +2,6 @@ import { CharacterClass, ICharacterPartyShared } from '@rpg-engine/shared';
|
|
|
2
2
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
3
|
import { IPartyRowProps } from '../PartyDashboard/PartyRows';
|
|
4
4
|
import { IPlayersRowProps } from '../PartyInvite';
|
|
5
|
-
import { IPartyManagerRowProps } from '../PartyManager';
|
|
6
5
|
|
|
7
6
|
export const mockedPartyRows: IPartyRowProps[] = [
|
|
8
7
|
{
|
|
@@ -134,7 +133,7 @@ export const mockedPlayersRows: IPlayersRowProps[] = [
|
|
|
134
133
|
},
|
|
135
134
|
];
|
|
136
135
|
|
|
137
|
-
export const mockedPartyManager:
|
|
136
|
+
export const mockedPartyManager: any[] = [
|
|
138
137
|
{
|
|
139
138
|
id: uuidv4(),
|
|
140
139
|
charName: 'CharNome',
|
|
@@ -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
|