bnstooltips 1.18.15 → 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.es.js CHANGED
@@ -8808,6 +8808,7 @@ function AddBreakValue(subInfoGroups, skill) {
8808
8808
  function AddSkillMastery(subInfoGroups, masteryPoints, masteryValue, masteryIsPercentage) {
8809
8809
  if (masteryPoints == null || masteryPoints == 0 || masteryValue == null || masteryValue == 0)
8810
8810
  return;
8811
+ var formattedMasteryValue = Number.isInteger(masteryValue) ? masteryValue.toString() : masteryValue.toFixed(2).replace(',', '.');
8811
8812
  subInfoGroups.push({
8812
8813
  title: "",
8813
8814
  texts: [
@@ -8820,13 +8821,13 @@ function AddSkillMastery(subInfoGroups, masteryPoints, masteryValue, masteryIsPe
8820
8821
  React.createElement("div", null,
8821
8822
  "Damage increase:\u00A0",
8822
8823
  React.createElement("span", { className: "tooltipArg" },
8823
- masteryValue,
8824
+ formattedMasteryValue,
8824
8825
  "%"))
8825
8826
  :
8826
8827
  React.createElement("div", null,
8827
8828
  "Cooldown reduction:\u00A0",
8828
8829
  React.createElement("span", { className: "tooltipArg" },
8829
- masteryValue,
8830
+ formattedMasteryValue,
8830
8831
  " sec."))),
8831
8832
  ],
8832
8833
  });