@wfcd/profile-parser 1.0.2 → 1.1.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/package.json +1 -1
- package/src/WeaponSkin.js +6 -1
- package/types/WeaponSkin.d.ts +2 -1
package/package.json
CHANGED
package/src/WeaponSkin.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { find } from 'warframe-items/utilities';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* A weapon skin
|
|
3
5
|
* @module
|
|
@@ -8,6 +10,9 @@ export default class WeaponSkin {
|
|
|
8
10
|
* Unique name
|
|
9
11
|
* @type {String}
|
|
10
12
|
*/
|
|
11
|
-
this.
|
|
13
|
+
this.uniqueName = skin.ItemType;
|
|
14
|
+
|
|
15
|
+
const item = find.findItem(skin.ItemType);
|
|
16
|
+
if (item) this.item = item;
|
|
12
17
|
}
|
|
13
18
|
}
|