@rpg-engine/long-bow 0.4.3 → 0.4.4

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.3",
3
+ "version": "0.4.4",
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.7.96",
86
+ "@rpg-engine/shared": "^0.8.1",
87
87
  "dayjs": "^1.11.2",
88
88
  "font-awesome": "^4.7.0",
89
89
  "fs-extra": "^10.1.0",
@@ -21,6 +21,9 @@ export const ProgressBar: React.FC<IBarProps> = ({
21
21
  minWidth = 100,
22
22
  style,
23
23
  }) => {
24
+ value = Math.round(value);
25
+ max = Math.round(max);
26
+
24
27
  const calculatePercentageValue = function(max: number, value: number) {
25
28
  if (value > max) {
26
29
  value = max;
@@ -93,6 +93,9 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
93
93
  const output = [];
94
94
 
95
95
  for (const [key, value] of Object.entries(skillCategory.values)) {
96
+ if (key === 'stamina') {
97
+ continue;
98
+ }
96
99
  //@ts-ignore
97
100
  const skillDetails = (skill[key] as unknown) as ISkillDetails;
98
101
 
@@ -168,17 +171,8 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
168
171
  const SkillsDraggableContainer = styled(DraggableContainer)`
169
172
  border: 1px solid black;
170
173
 
171
- @media screen and (min-width: 800px) {
172
- body {
173
- width: 800px;
174
- }
175
- }
174
+ max-width: 380px;
176
175
 
177
- @media screen and (max-width: 800px) {
178
- body {
179
- width: 400px;
180
- }
181
- }
182
176
  height: 90%;
183
177
  .DraggableContainer__TitleContainer-sc-184mpyl-2 {
184
178
  width: auto;