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.js CHANGED
@@ -326,7 +326,7 @@ function getMoneyObj(money) {
326
326
  };
327
327
  }
328
328
  function GetSkillMasteryValue(points, arcaneInfo) {
329
- if (points <= 0)
329
+ if (points <= 0 || arcaneInfo == null)
330
330
  return 0;
331
331
  return arcaneInfo.IsCooldown ? GetSkillMasteryCdValueForPoints(points, arcaneInfo.CooldownBreakpoints) : GetSkillMasteryValueForPoints(points, arcaneInfo.DamageSections);
332
332
  }
@@ -3053,7 +3053,7 @@ function throwException(message, status, response, headers, result) {
3053
3053
  var ItemDownloadClient = /** @class */ (function () {
3054
3054
  function ItemDownloadClient(region, patch) {
3055
3055
  if (patch === void 0) { patch = ""; }
3056
- this.apiV = "v22";
3056
+ this.apiV = "v25";
3057
3057
  this.patch = patch;
3058
3058
  this.region = region;
3059
3059
  var baseUrl = ItemDownloadClient.GetUrlBase();
@@ -8979,7 +8979,7 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
8979
8979
  if (masteryPoints == null || masteryPoints == 0 || arcaneInfo == null)
8980
8980
  return;
8981
8981
  var masteryValue = GetSkillMasteryValue(masteryPoints, arcaneInfo);
8982
- if (masteryValue == null || masteryValue == 0)
8982
+ if (masteryValue == null)
8983
8983
  return;
8984
8984
  var formattedMasteryValue = Number.isInteger(masteryValue) ? masteryValue.toString() : masteryValue.toFixed(2).replace(',', '.');
8985
8985
  subInfoGroups.push({