diff --git a/script/directives.js b/script/directives.js index 0f159aa7a4..07fd3596cc 100644 --- a/script/directives.js +++ b/script/directives.js @@ -99,4 +99,15 @@ } }; }); -})() \ No newline at end of file +})() + +habitrpg.directive('questRewards', ['$rootScope', function($rootScope){ + return { + restrict: 'AE', + templateUrl: 'partials/options.social.party.quest-rewards.html', + link: function(scope, element, attrs){ + scope.header = attrs.header || 'Rewards'; + scope.quest = $rootScope.Content.quests[attrs.key]; + } + } +}]); \ No newline at end of file