@rpg-engine/long-bow 0.8.93 → 0.8.94
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 +8 -10
- 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 +9 -11
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SkillsContainer.tsx +4 -7
- package/src/components/Spellbook/Spell.tsx +1 -1
|
@@ -36735,16 +36735,14 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
36735
36735
|
if (!skillDetails) {
|
|
36736
36736
|
return 0; // continue
|
|
36737
36737
|
}
|
|
36738
|
-
// Calculate skillPointsToNextLevel using exponential formula
|
|
36738
|
+
// Calculate skillPointsToNextLevel using exponential formula with character class
|
|
36739
36739
|
var calcSkillPointsToNextLevel = function calcSkillPointsToNextLevel() {
|
|
36740
|
-
|
|
36741
|
-
|
|
36742
|
-
|
|
36743
|
-
|
|
36744
|
-
|
|
36745
|
-
|
|
36746
|
-
}
|
|
36747
|
-
return Math.round(shared.getSPForLevel(skillDetails.level + 1));
|
|
36740
|
+
var effectiveClass = characterClass != null ? characterClass : shared.CharacterClass.None;
|
|
36741
|
+
var _getSkillConstants = shared.getSkillConstants(key, effectiveClass),
|
|
36742
|
+
A = _getSkillConstants.A,
|
|
36743
|
+
b = _getSkillConstants.b,
|
|
36744
|
+
c = _getSkillConstants.c;
|
|
36745
|
+
return Math.round(shared.getSPForLevelExponential(skillDetails.level + 1, A, b, c));
|
|
36748
36746
|
};
|
|
36749
36747
|
output.push(React__default.createElement(SkillProgressBar, {
|
|
36750
36748
|
key: key,
|
|
@@ -37154,7 +37152,7 @@ var SKILL_NAMES = {
|
|
|
37154
37152
|
shielding: 'shielding',
|
|
37155
37153
|
fishing: 'fishing',
|
|
37156
37154
|
cooking: 'cooking',
|
|
37157
|
-
|
|
37155
|
+
fistFighting: 'fist fighting'
|
|
37158
37156
|
};
|
|
37159
37157
|
var getSkillName = function getSkillName(attribute) {
|
|
37160
37158
|
return SKILL_NAMES[attribute] || attribute;
|