feat(mystery): July 2015 goodies

Also makes the mystery box opening notification translatable and adds item graphics to it.
This commit is contained in:
Sabe Jones
2015-07-23 12:05:13 -05:00
parent bfd56b35e1
commit d32d05e873
28 changed files with 5317 additions and 5267 deletions

View File

@@ -62,7 +62,7 @@ habitrpg.controller('NotificationCtrl',
var text, notes, type;
$rootScope.playSound('Item_Drop');
if (after.type !== 'gear' && after.type !== 'Quest') {
if (after.type !== 'gear' && after.type !== 'Quest' && after.type !== 'Mystery') {
if (after.type === 'Food') {
type = 'food';
} else if (after.type === 'HatchingPotion') {
@@ -91,6 +91,9 @@ habitrpg.controller('NotificationCtrl',
} else if (after.type === 'Quest') {
$rootScope.selectedQuest = Content.quests[after.key];
$rootScope.openModal('questDrop', {controller:'PartyCtrl'});
} else if (after.type === 'Mystery') {
text = Content.gear.flat[after.key].text();
Notification.drop(env.t('messageDropMysteryItem', {dropText: text}), after);
} else {
// Keep support for another type of drops that might be added
Notification.drop(User.user._tmp.drop.dialog);