@rpg-engine/long-bow 0.8.77 → 0.8.79

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.8.77",
3
+ "version": "0.8.79",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -84,7 +84,7 @@
84
84
  "dependencies": {
85
85
  "@capacitor/core": "^6.1.0",
86
86
  "@rollup/plugin-image": "^2.1.1",
87
- "@rpg-engine/shared": "^0.10.14",
87
+ "@rpg-engine/shared": "^0.10.30",
88
88
  "dayjs": "^1.11.2",
89
89
  "font-awesome": "^4.7.0",
90
90
  "fs-extra": "^10.1.0",
@@ -112,21 +112,21 @@ export const DailyTasks: React.FC<IDailyTasksProps> = ({
112
112
  return filtered.sort((a, b) => {
113
113
  const aIsPinned = pinnedTasks.includes(a.key);
114
114
  const bIsPinned = pinnedTasks.includes(b.key);
115
-
115
+
116
116
  // Pinned tasks always come first
117
117
  if (aIsPinned && !bIsPinned) return -1;
118
118
  if (!aIsPinned && bIsPinned) return 1;
119
-
119
+
120
120
  // If both are pinned or both are not pinned, sort by status priority
121
121
  const statusPriority = {
122
122
  [TaskStatus.InProgress]: 1,
123
123
  [TaskStatus.Completed]: 2,
124
124
  [TaskStatus.NotStarted]: 3,
125
125
  };
126
-
126
+
127
127
  const aPriority = statusPriority[a.status] || 4;
128
128
  const bPriority = statusPriority[b.status] || 4;
129
-
129
+
130
130
  return aPriority - bPriority;
131
131
  });
132
132
  }, [localTasks, searchQuery, selectedStatus, pinnedTasks]);
@@ -1,9 +1,4 @@
1
- import {
2
- ISkill,
3
- ISkillDetails,
4
- getSPForLevel,
5
- getXPForLevel,
6
- } from '@rpg-engine/shared';
1
+ import { ISkill, ISkillDetails, getXPForLevel } from '@rpg-engine/shared';
7
2
  import React from 'react';
8
3
  import styled from 'styled-components';
9
4
  import { uiColors } from '../constants/uiColors';
@@ -118,7 +113,7 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
118
113
  level={skillDetails.level || 0}
119
114
  skillPoints={Math.round(skillDetails.skillPoints) || 0}
120
115
  skillPointsToNextLevel={
121
- Math.round(getSPForLevel(skillDetails.level + 1)) || 0
116
+ Math.round(skillDetails.skillPointsToNextLevel) || 0
122
117
  }
123
118
  texturePath={value}
124
119
  atlasIMG={atlasIMG}