mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
generifies article for food when feeding to pet
This commit is contained in:
parent
7e791158d4
commit
dfdccfb458
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ habitrpg.controller("InventoryCtrl", ['$rootScope', '$scope', '$window', 'User',
|
|||
var food = $scope.selectedFood
|
||||
if (food.key == 'Saddle') {
|
||||
if (!$window.confirm('Saddle ' + pet + '?')) return;
|
||||
} else if (!$window.confirm('Feed ' + pet + ' a ' + food.text + '?')) {
|
||||
} else if (!$window.confirm('Feed ' + pet + ' '+ food.article + food.text + '?')) {
|
||||
return;
|
||||
}
|
||||
User.user.ops.feed({params:{pet: pet, food: food.key}});
|
||||
|
|
|
|||
Loading…
Reference in a new issue