mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
@@ -82,7 +82,7 @@ async function saveContentToDisk (language, content) {
|
||||
* the user's configured language.
|
||||
*
|
||||
* @apiSuccess {Object} data Various data about the content of Habitica. The content route
|
||||
* contains many keys, but the data listed below are the recomended data to use.
|
||||
* contains many keys, but the data listed below are the recommended data to use.
|
||||
* @apiSuccess {Object} data.mystery The mystery sets awarded to paying subscribers.
|
||||
* @apiSuccess {Object} data.gear The gear that can be equipped.
|
||||
* @apiSuccess {Object} data.gear.tree Detailed information about the gear, organized by type.
|
||||
@@ -101,7 +101,7 @@ async function saveContentToDisk (language, content) {
|
||||
* @apiSuccess {Object} data.food All the food.
|
||||
* @apiSuccess {Array} data.userCanOwnQuestCategories The types of quests that a user can own.
|
||||
* @apiSuccess {Object} data.quests Data about the quests.
|
||||
* @apiSuccess {Object} data.appearances Data about the apperance properties.
|
||||
* @apiSuccess {Object} data.appearances Data about the appearance properties.
|
||||
* @apiSuccess {Object} data.appearances.hair Data about available hair options.
|
||||
* @apiSuccess {Object} data.appearances.shirt Data about available shirt options.
|
||||
* @apiSuccess {Object} data.appearances.size Data about available body size options.
|
||||
@@ -109,7 +109,7 @@ async function saveContentToDisk (language, content) {
|
||||
* @apiSuccess {Object} data.appearances.chair Data about available chair options.
|
||||
* @apiSuccess {Object} data.appearances.background Data about available background options.
|
||||
* @apiSuccess {Object} data.backgrounds Data about the background sets.
|
||||
* @apiSuccess {Object} data.subscriptionBlocks Data about the various subscirption blocks.
|
||||
* @apiSuccess {Object} data.subscriptionBlocks Data about the various subscriptions blocks.
|
||||
*
|
||||
*/
|
||||
api.getContent = {
|
||||
|
||||
@@ -1049,7 +1049,7 @@ api.removeGroupMember = {
|
||||
*
|
||||
* @apiSuccess {Array} data The invites
|
||||
* @apiSuccess {Object} data[0] If the invitation was a User ID, you'll receive back an object.
|
||||
* You'll receive one Object for each succesful User ID invite.
|
||||
* You'll receive one Object for each successful User ID invite.
|
||||
* @apiSuccess {String} data[1] If the invitation was an email, you'll receive back the email.
|
||||
* You'll receive one String for each successful email invite.
|
||||
*
|
||||
|
||||
@@ -267,7 +267,7 @@ api.updateHero = {
|
||||
while (tierDiff) {
|
||||
hero.balance += gemsPerTier[newTier] / 4; // balance is in $
|
||||
tierDiff -= 1;
|
||||
newTier -= 1; // give them gems for the next tier down if they weren't aready that tier
|
||||
newTier -= 1; // give them gems for the next tier down if they weren't already that tier
|
||||
}
|
||||
|
||||
hero.addNotification('NEW_CONTRIBUTOR_LEVEL');
|
||||
|
||||
@@ -486,7 +486,7 @@ api.getInvitesForGroup = {
|
||||
* until you get less than 30 results.
|
||||
* BETA You can also use ?includeAllMembers=true. This option is currently in BETA
|
||||
* and may be removed in future.
|
||||
* Its use is discouraged and its performaces are not optimized especially for large challenges.
|
||||
* Its use is discouraged and its performances are not optimized especially for large challenges.
|
||||
*
|
||||
* @apiName GetMembersForChallenge
|
||||
* @apiGroup Member
|
||||
|
||||
@@ -989,7 +989,7 @@ api.purchase = {
|
||||
if (!canGetGems) throw new NotAuthorized(res.t('groupPolicyCannotGetGems'));
|
||||
}
|
||||
|
||||
// Req is currently used as options. Slighly confusing, but this will solve that for now.
|
||||
// Req is currently used as options. Slightly confusing, but this will solve that for now.
|
||||
let quantity = 1;
|
||||
if (req.body.quantity) quantity = req.body.quantity;
|
||||
req.quantity = quantity;
|
||||
|
||||
Reference in New Issue
Block a user