bnstooltips 1.18.16 → 1.18.17

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/build/index.js CHANGED
@@ -8816,6 +8816,7 @@ function AddBreakValue(subInfoGroups, skill) {
8816
8816
  function AddSkillMastery(subInfoGroups, masteryPoints, masteryValue, masteryIsPercentage) {
8817
8817
  if (masteryPoints == null || masteryPoints == 0 || masteryValue == null || masteryValue == 0)
8818
8818
  return;
8819
+ var formattedMasteryValue = Number.isInteger(masteryValue) ? masteryValue.toString() : masteryValue.toFixed(2).replace(',', '.');
8819
8820
  subInfoGroups.push({
8820
8821
  title: "",
8821
8822
  texts: [
@@ -8828,13 +8829,13 @@ function AddSkillMastery(subInfoGroups, masteryPoints, masteryValue, masteryIsPe
8828
8829
  React__default["default"].createElement("div", null,
8829
8830
  "Damage increase:\u00A0",
8830
8831
  React__default["default"].createElement("span", { className: "tooltipArg" },
8831
- masteryValue.toString().replace(',', '.'),
8832
+ formattedMasteryValue,
8832
8833
  "%"))
8833
8834
  :
8834
8835
  React__default["default"].createElement("div", null,
8835
8836
  "Cooldown reduction:\u00A0",
8836
8837
  React__default["default"].createElement("span", { className: "tooltipArg" },
8837
- masteryValue.toString().replace(',', '.'),
8838
+ formattedMasteryValue,
8838
8839
  " sec."))),
8839
8840
  ],
8840
8841
  });