bnstooltips 1.18.4 → 1.18.5

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
@@ -2038,6 +2038,7 @@ var ItemImproveEffectOptionDto = /** @class */ (function () {
2038
2038
  this.isEffect = _data["isEffect"];
2039
2039
  this.effectDescription = _data["effectDescription"];
2040
2040
  this.icon = _data["icon"] ? ItemIconDto.fromJS(_data["icon"]) : undefined;
2041
+ this.isPercentage = _data["isPercentage"];
2041
2042
  }
2042
2043
  };
2043
2044
  ItemImproveEffectOptionDto.fromJS = function (data) {
@@ -2053,6 +2054,7 @@ var ItemImproveEffectOptionDto = /** @class */ (function () {
2053
2054
  data["isEffect"] = this.isEffect;
2054
2055
  data["effectDescription"] = this.effectDescription;
2055
2056
  data["icon"] = this.icon ? this.icon.toJSON() : undefined;
2057
+ data["isPercentage"] = this.isPercentage;
2056
2058
  return data;
2057
2059
  };
2058
2060
  return ItemImproveEffectOptionDto;
@@ -7225,10 +7227,18 @@ function ItemImproveEffectsTooltip(_a) {
7225
7227
  subGroupTexts.push(React__default["default"].createElement("div", { className: "ItemImproveEffectsTooltip_entry", dangerouslySetInnerHTML: { __html: effect.effectDescription } }));
7226
7228
  }
7227
7229
  else {
7230
+ if (effect.statName.includes("-min"))
7231
+ return;
7232
+ var statValue = effect.statValue;
7233
+ //minmax
7234
+ if (effect.statName.includes("-max")) {
7235
+ var minVal = itemName.effects.find(function (x) { return x.statName === effect.statName.replace("-max", "-min"); }).statValue;
7236
+ statValue = (effect.statValue + minVal) / 2;
7237
+ }
7228
7238
  subGroupTexts.push(React__default["default"].createElement("div", { className: "ItemImproveEffectsTooltip_entry 00008130.UI.Label_Green03_12" },
7229
- React__default["default"].createElement("span", null, effect.statValue),
7239
+ React__default["default"].createElement("span", null, GetStatDisplayValue(statValue, effect.isPercentage)),
7230
7240
  "\u00A0",
7231
- React__default["default"].createElement("span", { dangerouslySetInnerHTML: { __html: effect.statName } })));
7241
+ React__default["default"].createElement("span", { dangerouslySetInnerHTML: { __html: ReplaceBossAndPvpAp(effect.statName).replace("Max.", "").trim() } })));
7232
7242
  }
7233
7243
  });
7234
7244
  var subGroup = {