Good afternoon everyone, I encountered the following problem.
Abilities/Skills/Cards cannot break weapons
Even if you directly specify in the skill properties to break a weapon, it will break all equipment except the weapon.
case SM_BASH:
if( sd && skill_lv > 5 && pc_checkskill(sd,SM_FATALBLOW)>0 ){
//BaseChance gets multiplied with BaseLevel/50.0; 500/50 simplifies to 10 [Playtester]
status_change_start(src,bl,SC_STUN,(skill_lv*10/4),
skill_lv,0,0,0,skill_get_time2(skill_id,skill_lv),SCSTART_NONE);
}
skill_break_equip(src,src, EQP_WEAPON, 10000, BCT_SELF);
skill_break_equip(src,src, EQP_ARMOR, 10000, BCT_SELF);
break;
What is written in skill_break_equip corresponds to the current version of rA
/*=========================================================================
Breaks equipment. On-non players causes the corresponding strip effect.
- rate goes from 0 to 10000 (100.00%)
- flag is a BCT_ flag to indicate which type of adjustment should be used
(BCT_ENEMY/BCT_PARTY/BCT_SELF) are the valid values.
--------------------------------------------------------------------------*/
int skill_break_equip(struct block_list *src, struct block_list *bl, unsigned short where, int rate, int flag)
Can anyone tell me where to look for the problem?
====================================================
ADD
I checked (break weapon) in the most recent version of rA. The same problem is observed
Server: https://github.com/rathena/rathena (I don't know version)
Client 20220303
Test on RE && next test on PRE-RE
config set:
equip_natural_break_rate: 10000
equip_self_break_rate: 100
equip_skill_break_rate: 100