mounts: change growth-points requirement to 50 (@lemoness)

This commit is contained in:
Tyler Renelle
2013-11-10 19:20:34 -08:00
parent 05c3e71a92
commit 543635dd37
2 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ habitrpg.controller("InventoryCtrl", ['$rootScope', '$scope', 'User', 'API_URL',
// Saddling a pet
if ($scope.selectedFood.name == 'Saddle') {
if (userPets[pet] < 150) return Notification.text(egg+" is not strong enough yet to saddle.");
if (userPets[pet] < 50) return Notification.text(egg+" is not strong enough yet to saddle.");
if (user.items.mounts[pet]) return Notification.text("You already have that mount");
if (!confirm('Saddle ' + pet + '?')) return;
userPets[pet] = 0;
@@ -131,11 +131,11 @@ habitrpg.controller("InventoryCtrl", ['$rootScope', '$scope', 'User', 'API_URL',
setObj['items.currentPet'] = '';
Notification.text('You have tamed '+egg+", let's go for a ride!");
} else {
if (userPets[pet] >= 150)
if (userPets[pet] >= 50)
return Notification.text(egg+" has become very strong and wild, try using a saddle and something might happen.");
if (!confirm('Feed ' + pet + ' a ' + $scope.selectedFood.name + '?')) return;
if ($scope.selectedFood.target == potion) {
userPets[pet] += 50; // FIXME change this to 5 before we're live
userPets[pet] += 5;
Notification.text(egg+' really likes the '+$scope.selectedFood.name+'!');
} else {
userPets[pet] += 2;

View File

@@ -55,8 +55,8 @@ script(type='text/ng-template', id='partials/options.inventory.stable.pets.html'
menu
div(ng-repeat='potion in Items.hatchingPotions', tooltip='{{potion.name}} {{egg.name}}', ng-init='pet = egg.name+"-"+potion.name')
button(class="pet-button Pet-{{pet}}", ng-if='user.items.pets[pet]>0', ng-class='{active: user.items.currentPet == pet}', ng-click='choosePet(egg.name, potion.name)')
.progress(ng-class='{"progress-success": user.items.pets[pet]<150}')
.bar(style="width: {{user.items.pets[pet]/1.5}}%;")
.progress(ng-class='{"progress-success": user.items.pets[pet]<50}')
.bar(style="width: {{user.items.pets[pet]/.5}}%;")
button(class="pet-button pet-not-owned", ng-if='!user.items.pets[pet]')
img(src='/bower_components/habitrpg-shared/img/PixelPaw.png')