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.es.js +6 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +6 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -8829,10 +8829,10 @@ function EffectTooltip(_a) {
|
|
|
8829
8829
|
var data = _a.data, _b = _a.debug, debug = _b === void 0 ? false : _b;
|
|
8830
8830
|
var effect = data;
|
|
8831
8831
|
var tooltipBaseProps = {
|
|
8832
|
-
title: effect.Name,
|
|
8832
|
+
title: effect.Name != null && effect.Name != "" ? effect.Name : "#noname",
|
|
8833
8833
|
id: effect.ID.toString(),
|
|
8834
8834
|
grade: 4,
|
|
8835
|
-
icon: BuildIconPath(effect.IconPath, effect.IconIndex - 1),
|
|
8835
|
+
icon: effect.IconPath != null && effect.IconPath != "" ? BuildIconPath(effect.IconPath, effect.IconIndex - 1) : "",
|
|
8836
8836
|
subtitle: effect.SubTableDef,
|
|
8837
8837
|
mainInfos: [],
|
|
8838
8838
|
subInfoGroups: []
|
|
@@ -8849,12 +8849,12 @@ function AddDescription(mainInfos, effect) {
|
|
|
8849
8849
|
}
|
|
8850
8850
|
function AddStackInfo(subInfoGroups, effect) {
|
|
8851
8851
|
var texts = [];
|
|
8852
|
-
if (effect.StackCount
|
|
8852
|
+
if (effect.StackCount != 0) {
|
|
8853
8853
|
texts.push(React.createElement("div", { key: "stackCount" },
|
|
8854
8854
|
"Stack Count: ",
|
|
8855
8855
|
React.createElement(BlueColoredText, { text: effect.StackCount.toString() })));
|
|
8856
8856
|
}
|
|
8857
|
-
if (effect.StackAmount
|
|
8857
|
+
if (effect.StackAmount != 0) {
|
|
8858
8858
|
texts.push(React.createElement("div", { key: "stackAmount" },
|
|
8859
8859
|
"Stack Limit: ",
|
|
8860
8860
|
React.createElement(BlueColoredText, { text: effect.StackAmount.toString() })));
|
|
@@ -8868,7 +8868,7 @@ function AddStackInfo(subInfoGroups, effect) {
|
|
|
8868
8868
|
}
|
|
8869
8869
|
function AddDurationInfo(subInfoGroups, effect) {
|
|
8870
8870
|
var texts = [];
|
|
8871
|
-
if (effect.PassiveDuratonInMs
|
|
8871
|
+
if (effect.PassiveDuratonInMs != 0) {
|
|
8872
8872
|
texts.push(React.createElement("div", { key: "passiveDuration" },
|
|
8873
8873
|
"Duration: ",
|
|
8874
8874
|
React.createElement(BlueColoredText, { text: ToDurationString(effect.PassiveDuratonInMs) })));
|
|
@@ -8881,7 +8881,7 @@ function AddDurationInfo(subInfoGroups, effect) {
|
|
|
8881
8881
|
}
|
|
8882
8882
|
}
|
|
8883
8883
|
function AddAliasInfo(subInfoGroups, effect) {
|
|
8884
|
-
if (effect.Alias.length > 0) {
|
|
8884
|
+
if (effect.Alias != null && effect.Alias.length > 0) {
|
|
8885
8885
|
subInfoGroups.push({
|
|
8886
8886
|
title: "Alias",
|
|
8887
8887
|
texts: [React.createElement(BlueColoredText, { text: effect.Alias })]
|