diff options
author | Haru <haru@dotalux.com> | 2014-02-03 03:17:29 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-02-03 17:59:25 +0100 |
commit | 42b5c048e3d97be93c71f81f84ff37c502f96163 (patch) | |
tree | 2525ecd27cddf23c11e78e8f8207c41bd63f757a /src/map/pc.h | |
parent | 2263dc4660c6668c373f6a9e654e21bea8c419e4 (diff) | |
download | hercules-42b5c048e3d97be93c71f81f84ff37c502f96163.tar.gz hercules-42b5c048e3d97be93c71f81f84ff37c502f96163.tar.bz2 hercules-42b5c048e3d97be93c71f81f84ff37c502f96163.tar.xz hercules-42b5c048e3d97be93c71f81f84ff37c502f96163.zip |
Added /stat+ commands support for 2013-12+ clients
- Fixes /str+, /agi+ and the likes, only being able to increase stats by
1 point on 2013-12 and newer clients.
- As a bonus, on those clients, processing of the /stat+ commands will
be much faster, and the requested points will be added instantly and
all at once rather than one at a time like in older clients.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.h')
-rw-r--r-- | src/map/pc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h index 487266646..808f6c52c 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -884,7 +884,8 @@ struct pc_interface { unsigned int (*thisjobexp) (struct map_session_data *sd); int (*gets_status_point) (int level); int (*need_status_point) (struct map_session_data *sd,int type,int val); - int (*statusup) (struct map_session_data *sd,int type); + int (*maxparameterincrease) (struct map_session_data* sd, int type); + bool (*statusup) (struct map_session_data *sd, int type, int increase); int (*statusup2) (struct map_session_data *sd,int type,int val); int (*skillup) (struct map_session_data *sd,uint16 skill_id); int (*allskillup) (struct map_session_data *sd); |