Merge branch 'develop' into sabrecat/onboarding-tweaks

This commit is contained in:
Sabe Jones
2015-08-25 16:47:46 -04:00
27 changed files with 6521 additions and 6475 deletions

View File

@@ -65,7 +65,10 @@ habitrpg.controller('NotificationCtrl',
var text, notes, type;
$rootScope.playSound('Item_Drop');
if (after.type !== 'gear' && after.type !== 'Quest' && after.type !== 'Mystery') {
// Note: For Mystery Item gear, after.type will be 'head', 'armor', etc
// so we use after.notificationType below.
if (after.type !== 'gear' && after.type !== 'Quest' && after.notificationType !== 'Mystery') {
if (after.type === 'Food') {
type = 'food';
} else if (after.type === 'HatchingPotion') {
@@ -94,7 +97,7 @@ habitrpg.controller('NotificationCtrl',
} else if (after.type === 'Quest') {
$rootScope.selectedQuest = Content.quests[after.key];
$rootScope.openModal('questDrop', {controller:'PartyCtrl'});
} else if (after.type === 'Mystery') {
} else if (after.notificationType === 'Mystery') {
text = Content.gear.flat[after.key].text();
Notification.drop(env.t('messageDropMysteryItem', {dropText: text}), after);
} else {