@rpg-engine/long-bow 0.6.43 → 0.6.44
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 +2 -2
- 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 +2 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SkillProgressBar.tsx +2 -4
|
@@ -32141,7 +32141,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
32141
32141
|
if (!skillPointsToNextLevel) {
|
|
32142
32142
|
skillPointsToNextLevel = shared.getSPForLevel(level + 1);
|
|
32143
32143
|
}
|
|
32144
|
-
// Calculate the ratio, ensuring it doesn't exceed 100%
|
|
32144
|
+
// Calculate the ratio for progress bar, ensuring it doesn't exceed 100%
|
|
32145
32145
|
var ratio = Math.min(skillPoints / skillPointsToNextLevel * 100, 100);
|
|
32146
32146
|
var skillsBuffsCalc = function skillsBuffsCalc(level, buffAndDebuff) {
|
|
32147
32147
|
var result = level * (buffAndDebuff / 100);
|
|
@@ -32161,7 +32161,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
32161
32161
|
}))) : React__default.createElement(React__default.Fragment, null)), React__default.createElement(ProgressBarContainer$1, null, React__default.createElement(SimpleProgressBar, {
|
|
32162
32162
|
value: ratio,
|
|
32163
32163
|
bgColor: bgColor
|
|
32164
|
-
}))), showSkillPoints && React__default.createElement(SkillDisplayContainer, null, React__default.createElement(SkillPointsDisplay, null,
|
|
32164
|
+
}))), showSkillPoints && React__default.createElement(SkillDisplayContainer, null, React__default.createElement(SkillPointsDisplay, null, ratio.toFixed(2), "%")));
|
|
32165
32165
|
};
|
|
32166
32166
|
var ProgressBarContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32167
32167
|
displayName: "SkillProgressBar__ProgressBarContainer",
|