mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +00:00
cleanup old func def, add docs for new funcs
This commit is contained in:
parent
48870f72b6
commit
c9d00aefa1
1 changed files with 6 additions and 5 deletions
|
@ -48,14 +48,15 @@ namespace Sapphire::Action
|
|||
bool isComboAction() const;
|
||||
|
||||
/*!
|
||||
* @brief Checks whether the source chara has the required stats/debuffs/etc to cast an action.
|
||||
* @param subtractCosts Whether we should subtract the costs (eg, mp/tp) from the player or to just check them
|
||||
* @return whether the requirements are met by the caster
|
||||
* @brief Checks if a chara has enough resources available to cast the action (tp/mp/etc)
|
||||
* @return true if they have the required resources
|
||||
*/
|
||||
bool costCheck( bool subtractCosts = false );
|
||||
|
||||
bool hasResources();
|
||||
|
||||
/*!
|
||||
* @brief Checks if a chara has enough resources available to cast the action and then consumes them (tp/mp/etc)
|
||||
* @return true if they have the required resources
|
||||
*/
|
||||
bool consumeResources();
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Add table
Reference in a new issue