Skip to content

Commit

Permalink
feat: Add a faction key to Syndicates and Sorties (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein committed Dec 14, 2021
1 parent 2d15baf commit ec2c04f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Sortie.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ class Sortie extends WorldstateObject {
*/
this.faction = translator.sortieFaction(data.Boss, locale);

/**
* The sortie's faction
* @type {string}
*/
this.factionKey = translator.sortieFaction(data.boss, 'en');

/**
* Whether or not this is expired (at time of object creation)
* @type {boolean}
Expand Down
6 changes: 6 additions & 0 deletions lib/SyndicateMission.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ class SyndicateMission extends WorldstateObject {
*/
this.syndicate = translator.syndicate(data.Tag, locale);

/**
* The syndicate that is offering the mission
* @type {string}
*/
this.syndicateKey = translator.syndicate(data.Tag, 'en');

/**
* The nodes on which the missions are taking place
* @type {Array.<string>}
Expand Down

0 comments on commit ec2c04f

Please sign in to comment.