From 42b5c048e3d97be93c71f81f84ff37c502f96163 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 3 Feb 2014 03:17:29 +0100 Subject: 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 --- src/map/pc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/pc.h') 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); -- cgit v1.2.3-60-g2f50