|
|
@@ -38,6 +38,18 @@ module.exports = { |
|
|
|
if ((!quest) || (!quest.isReady)) |
|
|
|
return; |
|
|
|
|
|
|
|
//Analytics Tracking |
|
|
|
process.send({ |
|
|
|
method: 'track', |
|
|
|
serverId: this.obj.serverId, |
|
|
|
obj: { |
|
|
|
category: 'quest', |
|
|
|
action: 'complete', |
|
|
|
label: quest.name, |
|
|
|
value: 1 |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
quest.complete(); |
|
|
|
|
|
|
|
this.quests.spliceWhere(q => q === quest); |
|
|
|