Skip to content

Commit

Permalink
feat: expose uniqueName for VoidTraderItems
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein committed Sep 11, 2023
1 parent d98169f commit 697d566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/models/VoidTraderItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class VoidTraderItem {
* @param {string} deps.locale Locale to use for translations
*/
constructor({ ItemType, PrimePrice, RegularPrice }, { translator, locale }) {
this.uniqueName = ItemType;
this.item = translator.languageString(ItemType, locale);
this.ducats = Number.parseInt(PrimePrice, 10);
this.credits = Number.parseInt(RegularPrice, 10);
Expand Down

0 comments on commit 697d566

Please sign in to comment.