Skip to content

Commit

Permalink
#1 Added Recruit A Friend campaign methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDonnelly committed Jun 17, 2019
1 parent 6bd2759 commit 46958c0
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/de/emotes.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/de/mounts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/en/emotes.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/en/mounts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fr/emotes.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fr/mounts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ja/emotes.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ja/mounts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
119
120
21 changes: 21 additions & 0 deletions extensions/obtain-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ module.exports = {
{ fn: collectorsEdition, args: [_localisationHelper.misc['A Realm Reborn']] }
]
},
emotes: {
115: [
{ fn: recruitAFriend, args: [30] }
]
},
minions: {
5: [
{ fn: collectorsEdition, args: [_localisationHelper.misc['Legacy (1.0)']] },
Expand Down Expand Up @@ -334,6 +339,9 @@ module.exports = {
// The Whorleater (Extreme)
{ fn: instancedContent, args: [instances.find(instance => instance.id === 20018)] }
],
34: [
{ fn: recruitAFriend, args: [90] }
],
40: [
// The Striking Tree (Extreme)
{ fn: instancedContent, args: [instances.find(instance => instance.id === 20023)] }
Expand Down Expand Up @@ -504,4 +512,17 @@ function legacyStatus(contentId, days, months, expansion, language) {
expansion,
months
}, language)
}

/**
* Recruit A Friend campaign.
* @param {Number} contentId - The ID of the content
* @param {Number} days - Number of days
* @param {String} language - The localisation code (e.g. `"en"`)
*/
function recruitAFriend(contentId, days, language) {
return _localisationHelper.recruitAFriendShort({
contentId,
days
}, language)
}
3 changes: 3 additions & 0 deletions src/config/_localisationHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ module.exports = {
[quest.level, quest.name[language], quest.journal.category[language]]
])
},
recruitAFriendShort: (entry) => ([
'recruitAFriend', 6, [entry.days]
]),
shop: {
gilShort: (entry, language) => ([
'gilShopShort',
Expand Down

0 comments on commit 46958c0

Please sign in to comment.