poe-text-to-item
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -16,1 +16,3 @@ export * from "./Affix"; | ||
export * from "./Talisman"; | ||
export * from "./Item"; | ||
export * from "./Base"; |
@@ -32,1 +32,3 @@ "use strict"; | ||
__exportStar(require("./Talisman"), exports); | ||
__exportStar(require("./Item"), exports); | ||
__exportStar(require("./Base"), exports); |
@@ -1,1 +0,1 @@ | ||
export declare function getItemIcon(itemBase: any): string; | ||
export declare function getItemIcon(itemBase: any): any; |
@@ -13,9 +13,14 @@ "use strict"; | ||
return ""; | ||
return "http://web.poecdn.com/image/Art/2DItems/" + rareBases_json_1.default[itemBase.base].imgurl; | ||
const base = rareBases_json_1.default[itemBase.base]; | ||
if (!base) | ||
return ""; | ||
return base.icon; | ||
} | ||
else { | ||
const base = uniqueBases_json_1.default[itemBase.name]; | ||
return "http://web.poecdn.com/image/Art/2DItems/" + base.icon + ".png"; | ||
if (!base) | ||
return ""; | ||
return base.icon; | ||
} | ||
} | ||
exports.getItemIcon = getItemIcon; |
{ | ||
"name": "poe-text-to-item", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
988498
5428