summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-04-02 20:58:28 +0200
committerHaru <haru@dotalux.com>2014-04-02 20:58:28 +0200
commit34658a75ffeced4d9ed75a6e0b4ae015c1b7c6de (patch)
tree30f601e4973db000e3623b68ab99b6a0903fef86 /src/map/pc.c
parent53c0e46ed711755a5c3a06bad4263a80089b3b2f (diff)
downloadhercules-34658a75ffeced4d9ed75a6e0b4ae015c1b7c6de.tar.gz
hercules-34658a75ffeced4d9ed75a6e0b4ae015c1b7c6de.tar.bz2
hercules-34658a75ffeced4d9ed75a6e0b4ae015c1b7c6de.tar.xz
hercules-34658a75ffeced4d9ed75a6e0b4ae015c1b7c6de.zip
Minor edits to pc_statusup documentation comments
- Follow-up to a3fecfc Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 249b5f0b1..b6964fc6e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6219,14 +6219,15 @@ int pc_maxparameterincrease(struct map_session_data* sd, int type) {
/**
* Raises a stat by the specified amount.
+ *
* Obeys max_parameter limits.
- * Does not subtract stat points.
+ * Subtracts status points according to the cost of the increased stat points.
*
* @param sd The target character.
* @param type The stat to change (see enum _sp)
- * @param increase The stat increase amount.
- * @return true if the stat was increased by any amount, false if there were no
- * changes.
+ * @param increase The stat increase (strictly positive) amount.
+ * @retval true if the stat was increased by any amount.
+ * @retval false if there were no changes.
*/
bool pc_statusup(struct map_session_data* sd, int type, int increase) {
int max_increase = 0, current = 0, needed_points = 0, final_value = 0;
@@ -6277,13 +6278,15 @@ bool pc_statusup(struct map_session_data* sd, int type, int increase) {
/**
* Raises a stat by the specified amount.
+ *
* Obeys max_parameter limits.
- * Subtracts stat points.
+ * Does not subtract status points for the cost of the modified stat points.
*
- * @param sd The target character.
- * @param type The stat to change (see enum _sp)
- * @param increase The stat increase amount.
- * @return zero if no changes were made, otherwise returns stat increase amount
+ * @param sd The target character.
+ * @param type The stat to change (see enum _sp)
+ * @param val The stat increase (or decrease) amount.
+ * @return the stat increase amount.
+ * @retval 0 if no changes were made.
*/
int pc_statusup2(struct map_session_data* sd, int type, int val)
{