bnstooltips 1.5.6 → 1.6.0

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
@@ -139,6 +139,21 @@ styleInject(css_248z$5);
139
139
  function BuildIconPath(iconPath, iconIndex) {
140
140
  if (iconPath == null)
141
141
  return "";
142
+ if (iconPath.startsWith("//")) {
143
+ iconPath = iconPath.substring(1);
144
+ }
145
+ if (iconPath.startsWith("/Game/")) {
146
+ console.log(iconPath);
147
+ var split = iconPath.split('/');
148
+ var last = split[split.length - 1];
149
+ console.log(last);
150
+ var penultimate = split[split.length - 2];
151
+ console.log(penultimate);
152
+ if (last === penultimate) {
153
+ iconPath = iconPath.replace("/".concat(penultimate, "/"), "/");
154
+ }
155
+ console.log(iconPath);
156
+ }
142
157
  iconPath = iconPath.replace("/Game/Art/UI/GameUI/Resource/GameUI_Icon/Skill_Icon_DualBlader_2", "00008758");
143
158
  iconPath = iconPath.replace("/Game/Art/UI/GameUI/Resource/GameUI_Icon/Skill_Icon_Shooter_2", "00008758");
144
159
  iconPath = ReplacePoharanSS(iconPath);