randell1993 Posted November 19, 2011 Posted November 19, 2011 (edited) Im looking on battle.c but cant find where to edit the formula im asking this because on my server crit doesnt increase the dmage but halves it ironic right Edited November 19, 2011 by randell1993 Quote
0 darkmeistersp Posted November 19, 2011 Posted November 19, 2011 The critical formula is located on status.c. I think you are looking for this: case BL_MOB: if(battle_config.mob_critical_rate != 100) status->cri = status->cri*battle_config.mob_critical_rate/100; if(!status->cri && battle_config.mob_critical_rate) status->cri = 10; break; case BL_PC: //Players don't have a critical adjustment setting as of yet. break; default: if(battle_config.critical_rate != 100) status->cri = status->cri*battle_config.critical_rate/100; if (!status->cri && battle_config.critical_rate) status->cri = 10; } The formula for players starts when it says default: It is located in the status_calc_misc function. Quote
0 randell1993 Posted November 19, 2011 Author Posted November 19, 2011 uhm this isnt what im looking for sorry for misleading title but i want to adjust the critical damage Quote
0 Shinryo Posted November 19, 2011 Posted November 19, 2011 Check 'battle_calc_weapon_damage' in 'battle.c' and search everything that has to do with 'flag.cri'. Besides that, what do you mean with 'instead of increasing'. As far as I remember this kind of behavior (increase damage while not ignore defense) is only available in renewal mechanics which aren't implemented in eAthena, yet. What revision are you using anyway? There are so much possibilites and the only way to find out why it behaves the way you saw it on your server, is to simply provide more information. Quote
Question
randell1993
Im looking on battle.c but cant find where to edit the formula
im asking this because on my server crit doesnt increase the dmage but halves it ironic right
Edited by randell19933 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.