bnstooltips 1.16.0 → 1.16.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
@@ -8837,10 +8837,10 @@ function EffectTooltip(_a) {
8837
8837
  var data = _a.data, _b = _a.debug, debug = _b === void 0 ? false : _b;
8838
8838
  var effect = data;
8839
8839
  var tooltipBaseProps = {
8840
- title: effect.Name,
8840
+ title: effect.Name != null && effect.Name != "" ? effect.Name : "#noname",
8841
8841
  id: effect.ID.toString(),
8842
8842
  grade: 4,
8843
- icon: BuildIconPath(effect.IconPath, effect.IconIndex - 1),
8843
+ icon: effect.IconPath != null && effect.IconPath != "" ? BuildIconPath(effect.IconPath, effect.IconIndex - 1) : "",
8844
8844
  subtitle: effect.SubTableDef,
8845
8845
  mainInfos: [],
8846
8846
  subInfoGroups: []
@@ -8857,12 +8857,12 @@ function AddDescription(mainInfos, effect) {
8857
8857
  }
8858
8858
  function AddStackInfo(subInfoGroups, effect) {
8859
8859
  var texts = [];
8860
- if (effect.StackCount > 0) {
8860
+ if (effect.StackCount != 0) {
8861
8861
  texts.push(React__default["default"].createElement("div", { key: "stackCount" },
8862
8862
  "Stack Count: ",
8863
8863
  React__default["default"].createElement(BlueColoredText, { text: effect.StackCount.toString() })));
8864
8864
  }
8865
- if (effect.StackAmount > 0) {
8865
+ if (effect.StackAmount != 0) {
8866
8866
  texts.push(React__default["default"].createElement("div", { key: "stackAmount" },
8867
8867
  "Stack Limit: ",
8868
8868
  React__default["default"].createElement(BlueColoredText, { text: effect.StackAmount.toString() })));
@@ -8876,7 +8876,7 @@ function AddStackInfo(subInfoGroups, effect) {
8876
8876
  }
8877
8877
  function AddDurationInfo(subInfoGroups, effect) {
8878
8878
  var texts = [];
8879
- if (effect.PassiveDuratonInMs > 0) {
8879
+ if (effect.PassiveDuratonInMs != 0) {
8880
8880
  texts.push(React__default["default"].createElement("div", { key: "passiveDuration" },
8881
8881
  "Duration: ",
8882
8882
  React__default["default"].createElement(BlueColoredText, { text: ToDurationString(effect.PassiveDuratonInMs) })));
@@ -8889,7 +8889,7 @@ function AddDurationInfo(subInfoGroups, effect) {
8889
8889
  }
8890
8890
  }
8891
8891
  function AddAliasInfo(subInfoGroups, effect) {
8892
- if (effect.Alias.length > 0) {
8892
+ if (effect.Alias != null && effect.Alias.length > 0) {
8893
8893
  subInfoGroups.push({
8894
8894
  title: "Alias",
8895
8895
  texts: [React__default["default"].createElement(BlueColoredText, { text: effect.Alias })]