Skip to content

Commit

Permalink
Update jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCross-79 committed Aug 30, 2023
1 parent 47e0e66 commit 3e04c49
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/WorldState.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,18 @@ module.exports = class WorldState {
/**
* The state of the Void Trader
* @type {VoidTrader}
* @deprecated
*/
const voidTraderArray = parseArray(deps.VoidTrader, data.VoidTraders, deps);
voidTraderArray.sort((a, b) => Date.parse(a.activation) - Date.parse(b.activation));
this.voidTraders = voidTraderArray;
[this.voidTrader] = parseArray(deps.VoidTrader, data.VoidTraders, deps);

/**
* The state of all Void Traders
* @type {VoidTrader[]}
*/
this.voidTraders = parseArray(deps.VoidTrader, data.VoidTraders, deps).sort(
(a, b) => Date.parse(a.activation) - Date.parse(b.activation)
);
[this.voidTrader] = this.voidTraders;

/**
* The current daily deals
Expand Down

0 comments on commit 3e04c49

Please sign in to comment.