fix(typo)

This commit is contained in:
Matteo Pagliazzi
2014-08-03 12:55:17 +02:00
parent a30ee4368a
commit 176b39a1a0
+11 -11
View File
@@ -63,18 +63,18 @@ habitrpg.controller('NotificationCtrl',
User.user.items[type][after.key]++;
}
if(drop.type === 'HatchingPotion'){
var text = Content.hatchingPotions[drop.key].text();
var notes = Content.hatchingPotions[drop.key].notes();
if(after.type === 'HatchingPotion'){
var text = Content.hatchingPotions[after.key].text();
var notes = Content.hatchingPotions[after.key].notes();
Notification.drop(env.t('messageDropPotion', {dropText: text, dropNotes: notes}));
}else if(drop.type === 'Egg'){
var text = Content.eggs[drop.key].text();
var notes = Content.eggs[drop.key].notes();
Notification.drop(env.t('messageDropEgg', {dropText: text, dropNotes: notes}));
}else if(drop.type === 'Food'){
var text = Content.food[drop.key].text();
var notes = Content.food[drop.key].notes();
Notification.drop(env.t('messageDropFood', {dropArticle: drop.article, dropText: text, dropNotes: notes}));
}else if(after.type === 'Egg'){
var text = Content.eggs[after.key].text();
var notes = Content.eggs[after.key].notes();
Notification.after(env.t('messageDropEgg', {dropText: text, dropNotes: notes}));
}else if(after.type === 'Food'){
var text = Content.food[after.key].text();
var notes = Content.food[after.key].notes();
Notification.after(env.t('messageDropFood', {dropArticle: after.article, dropText: text, dropNotes: notes}));
}else{
// Keep support for another type of drops that might be added
Notification.drop(User.user._tmp.drop.dialog);