diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-18 06:50:47 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-18 06:50:47 +0000 |
commit | 988b2d2bc46bbd567b329b982da90be3355b1ac0 (patch) | |
tree | faabdd49a92305c43194e1eeb45a75bd9a45e23c /src/map | |
parent | 1c4d1899b28e53c5c4995e4f17ab03d2b4f22241 (diff) | |
download | hercules-988b2d2bc46bbd567b329b982da90be3355b1ac0.tar.gz hercules-988b2d2bc46bbd567b329b982da90be3355b1ac0.tar.bz2 hercules-988b2d2bc46bbd567b329b982da90be3355b1ac0.tar.xz hercules-988b2d2bc46bbd567b329b982da90be3355b1ac0.zip |
Fixed Minstrel/Wanderer Lessons skill SP Boost, SP Regen. bugreport:5364
Fixed Ranger Trap Research SP Boost.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15716 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/status.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 0f5b2aefe..d6c180e7d 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2614,6 +2614,11 @@ int status_calc_pc_(struct map_session_data* sd, bool first) status->max_sp += status->max_sp * skill/100; if((skill=pc_checkskill(sd,HW_SOULDRAIN))>0) status->max_sp += status->max_sp * 2*skill/100; + if( (skill = pc_checkskill(sd,RA_RESEARCHTRAP)) > 0 ) + status->max_sp += 200 + 20 * skill; + if( (skill = pc_checkskill(sd,WM_LESSON)) > 0 ) + status->max_sp += 30 * skill; + // Apply relative modifiers from equipment if(sd->sprate < 0) @@ -3088,6 +3093,9 @@ void status_calc_regen(struct block_list *bl, struct status_data *status, struct val += skill*3 + skill*status->max_sp/500; if( (skill=pc_checkskill(sd,NJ_NINPOU)) > 0 ) val += skill*3 + skill*status->max_sp/500; + if( (skill=pc_checkskill(sd,WM_LESSON)) > 0 ) + val += 3 + 3 * skill; + sregen->sp = cap_value(val, 0, SHRT_MAX); // Skill-related recovery (only when sit) |