Max HP/SP battleconf not working | closed | |
Everade 2014-03-09 16:39:34 | conf/battle/player.conf hp_rate: 500 sp_rate: 500 These 2 settings are not changing the hp nor sp rate anymore. (no effect at all) This issue is already since quite a while persistent now. I was only able to temporarily fix it with adding the following two lines to status.c Would be great to see this finally fixed. This issue is still existant on the latest rA revision ([color=#ff0000]svn[/color] 12031) [quote] if(flag&SCB_MAXHP) { if( bl->type&BL_PC ) { status->max_hp = status_calc_maxhpsp_pc(sd,status->vit,true); [color=#008000] status->max_hp = (int64)status->max_hp *battle_config.hp_rate/100;[/color] if( status->max_hp > (unsigned int)battle_config.max_hp ) status->max_hp = (unsigned int)battle_config.max_hp; } else status->max_hp = status_calc_maxhp(bl, b_status->max_hp); if( status->hp > status->max_hp ) { // !FIXME: Should perhaps a status_zap should be issued? status->hp = status->max_hp; if( sd ) clif_updatestatus(sd,SP_HP); } } if(flag&SCB_MAXSP) { if( bl->type&BL_PC ) { status->max_sp = status_calc_maxhpsp_pc(sd,status->int_,false); [color=#008000]status->max_sp = (int64)status->max_sp *battle_config.sp_rate/100;[/color] if( status->max_sp > (unsigned int)battle_config.max_sp ) status->max_sp = (unsigned int)battle_config.max_sp; } else status->max_sp = status_calc_maxsp(bl, b_status->max_sp); if( status->sp > status->max_sp ) { status->sp = status->max_sp; if( sd ) clif_updatestatus(sd,SP_SP); } } [/quote] | |
Cydh 2014-03-13 17:30:15 | Fixed here dd67f9d thank you for reporting. :) |