@rpg-engine/long-bow 0.6.42 → 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 +3 -3
- 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 +3 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SkillProgressBar.tsx +2 -4
- package/src/components/Tutorial/TutorialStepper.tsx +0 -1
|
@@ -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",
|
|
@@ -33337,7 +33337,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33337
33337
|
var LessonImageWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
33338
33338
|
displayName: "TutorialStepper__LessonImageWrapper",
|
|
33339
33339
|
componentId: "sc-7tgzv2-0"
|
|
33340
|
-
})(["width:100%;max-width:500px;margin:1rem auto;aspect-ratio:auto;border-radius:10px;
|
|
33340
|
+
})(["width:100%;max-width:500px;margin:1rem auto;aspect-ratio:auto;border-radius:10px;"]);
|
|
33341
33341
|
var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
33342
33342
|
displayName: "TutorialStepper__LessonBody",
|
|
33343
33343
|
componentId: "sc-7tgzv2-1"
|