mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
finish linting server
This commit is contained in:
@@ -13,8 +13,12 @@ const api = {};
|
||||
* @apiGroup User
|
||||
*
|
||||
|
||||
* @apiParam (Path) {String=fireball, mpheal, earth, frost, smash, defensiveStance, valorousPresence, intimidate, pickPocket, backStab, toolsOfTrade, stealth, heal, protectAura, brightness, healAll} spellId The skill to cast.
|
||||
* @apiParam (Query) {UUID} targetId Query parameter, necessary if the spell is cast on a party member or task. Not used if the spell is case on the user or the user's current party.
|
||||
* @apiParam (Path) {String=fireball, mpheal, earth, frost, smash, defensiveStance,
|
||||
* valorousPresence, intimidate, pickPocket, backStab, toolsOfTrade,
|
||||
* stealth, heal, protectAura, brightness, healAll} spellId The skill to cast.
|
||||
* @apiParam (Query) {UUID} targetId Query parameter, necessary if the spell is
|
||||
* cast on a party member or task. Not used if the spell
|
||||
* is casted on the user or the user's current party.
|
||||
* @apiParamExample {json} Query example:
|
||||
* Cast "Pickpocket" on a task:
|
||||
* https://habitica.com/api/v3/user/class/cast/pickPocket?targetId=fd427623...
|
||||
@@ -22,7 +26,8 @@ const api = {};
|
||||
* Cast "Tools of the Trade" on the party:
|
||||
* https://habitica.com/api/v3/user/class/cast/toolsOfTrade
|
||||
*
|
||||
* @apiSuccess data Will return the modified targets. For party members only the necessary fields will be populated. The user is always returned.
|
||||
* @apiSuccess data Will return the modified targets. For party members only
|
||||
* the necessary fields will be populated. The user is always returned.
|
||||
*
|
||||
* @apiDescription Skill Key to Name Mapping
|
||||
* Mage
|
||||
|
||||
@@ -5,7 +5,8 @@ import { authWithHeaders } from '../../../middlewares/auth';
|
||||
const api = {};
|
||||
|
||||
/**
|
||||
* @api {post} /api/v3/user/allocate Allocate a single Stat Point (previously called Attribute Point)
|
||||
* @api {post} /api/v3/user/allocate Allocate a single Stat Point
|
||||
* (previously called Attribute Point)
|
||||
* @apiName UserAllocate
|
||||
* @apiGroup User
|
||||
*
|
||||
@@ -79,7 +80,9 @@ api.allocateBulk = {
|
||||
|
||||
/**
|
||||
* @api {post} /api/v3/user/allocate-now Allocate all Stat Points
|
||||
* @apiDescription Uses the user's chosen automatic allocation method, or if none, assigns all to STR. Note: will return success, even if there are 0 points to allocate.
|
||||
* @apiDescription Uses the user's chosen automatic allocation method,
|
||||
* or if none, assigns all to STR. Note: will return success,
|
||||
* even if there are 0 points to allocate.
|
||||
* @apiName UserAllocateNow
|
||||
* @apiGroup User
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user