mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Fixed quest drop modal (#7377)
* Fixed quest drop modal * Fixed broken party test
This commit is contained in:
committed by
Matteo Pagliazzi
parent
d36c514c06
commit
f4ca97ffc3
@@ -68,7 +68,7 @@ habitrpg.controller('NotificationCtrl',
|
||||
}
|
||||
|
||||
$rootScope.$watch('user.stats.lvl', function(after, before) {
|
||||
if (after <= before) return;
|
||||
if (after <= before) return;
|
||||
Notification.lvl();
|
||||
$rootScope.playSound('Level_Up');
|
||||
if (User.user._tmp && User.user._tmp.drop && (User.user._tmp.drop.type === 'Quest')) return;
|
||||
@@ -127,7 +127,7 @@ habitrpg.controller('NotificationCtrl',
|
||||
Notification.drop(env.t('messageDropFood', {dropArticle: after.article, dropText: text, dropNotes: notes}), after);
|
||||
} else if (after.type === 'Quest') {
|
||||
$rootScope.selectedQuest = Content.quests[after.key];
|
||||
$rootScope.openModal('questDrop', {controller:'PartyCtrl',size:'sm'});
|
||||
$rootScope.openModal('questDrop', {controller:'PartyCtrl', size:'sm'});
|
||||
} else if (after.notificationType === 'Mystery') {
|
||||
text = Content.gear.flat[after.key].text();
|
||||
Notification.drop(env.t('messageDropMysteryItem', {dropText: text}), after);
|
||||
|
||||
Reference in New Issue
Block a user