@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.4.91",
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.35",
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",
@@ -36,7 +36,7 @@ export const PartyManager: React.FC<IPartyManagerProps> = ({
36
36
  </div>
37
37
  </Wrapper>
38
38
  <RowsWrapper className="partyRows">
39
- {partyRows ? (
39
+ {partyRows && partyRows.members ? (
40
40
  <>
41
41
  {partyRows.members.map(partyRow => (
42
42
  <PartyManagerRow
@@ -29,7 +29,6 @@ export const PartyManagerRow: React.FC<IPartyManagerRowProps> = ({
29
29
  <div className="cancel-button">
30
30
  <Button
31
31
  buttonType={ButtonTypes.RPGUIButton}
32
- disabled={!isLeader}
33
32
  onPointerDown={() => onRemovePlayer(id)}
34
33
  >
35
34
  Remove
@@ -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: IPartyManagerRowProps[] = [
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
- if (buffAndDebuff) {
42
- return 1 + buffAndDebuff / 100;
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
Binary file
Binary file
Binary file
Binary file