mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Add API calls for shop inventories (#7810)
* Add API call for market inventory * changes to shop api calls * optimize shop categories * add API call for quests * add api call for time travelers shop * fic buying items in shops * fix linting errors * shop adjustments for iOS app * add tests to shops * fix syntax issues * Code formatting * correct indentation * add tests for api routes * fix time travelers and seasonal * Increase test coverage for shop routes * refactor: Pull out trinket count in time traveler route * refactor: Clarify instructions for seasonal shop script * lint: Remove extra new line * Adjust shops common test
This commit is contained in:
committed by
Sabe Jones
parent
aa00893f6c
commit
24d25026cf
@@ -352,6 +352,11 @@ habitrpg.controller("InventoryCtrl",
|
||||
User.hourglassPurchase({params:{type:type,key:key}});
|
||||
};
|
||||
|
||||
$scope.marketShopCategories = Shared.shops.getMarketCategories(user);
|
||||
$scope.questShopCategories = Shared.shops.getQuestShopCategories(user);
|
||||
$scope.timeTravelersCategories = Shared.shops.getTimeTravelersCategories(user);
|
||||
$scope.seasonalShopCategories = Shared.shops.getSeasonalShopCategories(user);
|
||||
|
||||
function _updateDropAnimalCount(items) {
|
||||
$scope.petCount = Shared.count.beastMasterProgress(items.pets);
|
||||
$scope.mountCount = Shared.count.mountMasterProgress(items.mounts);
|
||||
|
||||
Reference in New Issue
Block a user