bnstooltips 1.20.0 → 1.20.2

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
@@ -318,7 +318,7 @@ function getMoneyObj(money) {
318
318
  };
319
319
  }
320
320
  function GetSkillMasteryValue(points, arcaneInfo) {
321
- if (points <= 0)
321
+ if (points <= 0 || arcaneInfo == null)
322
322
  return 0;
323
323
  return arcaneInfo.IsCooldown ? GetSkillMasteryCdValueForPoints(points, arcaneInfo.CooldownBreakpoints) : GetSkillMasteryValueForPoints(points, arcaneInfo.DamageSections);
324
324
  }
@@ -3045,7 +3045,7 @@ function throwException(message, status, response, headers, result) {
3045
3045
  var ItemDownloadClient = /** @class */ (function () {
3046
3046
  function ItemDownloadClient(region, patch) {
3047
3047
  if (patch === void 0) { patch = ""; }
3048
- this.apiV = "v22";
3048
+ this.apiV = "v25";
3049
3049
  this.patch = patch;
3050
3050
  this.region = region;
3051
3051
  var baseUrl = ItemDownloadClient.GetUrlBase();
@@ -8971,7 +8971,7 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
8971
8971
  if (masteryPoints == null || masteryPoints == 0 || arcaneInfo == null)
8972
8972
  return;
8973
8973
  var masteryValue = GetSkillMasteryValue(masteryPoints, arcaneInfo);
8974
- if (masteryValue == null || masteryValue == 0)
8974
+ if (masteryValue == null)
8975
8975
  return;
8976
8976
  var formattedMasteryValue = Number.isInteger(masteryValue) ? masteryValue.toString() : masteryValue.toFixed(2).replace(',', '.');
8977
8977
  subInfoGroups.push({