Jump to content
  • 0
Sign in to follow this  
kbro

Damage < 1, MISS! [REMOVAL]

Question

I just want an easy way to eliminate MISS showing up. It shows when damage drops below 0. I want all damage that is 0 and below to instead default to 1.

 

Everywhere in the source I look that deals with flee calculations seems irrelevant to the final decision of what the damage will end up being-- that's probably because of this:

// What is the minimum and maximum hitrate of normal attacks? min_hitrate: 100 //5max_hitrate: 100

Flee isn't my issue at all. The only issue is damage being reduced to 0. That needs to be changed.

 

The closer I get to where the damage is lastly calculated, I can throw in the following:

damage > 0 ? damage : 1;
Edited by kbro

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

inside battle_calc_weapon_attack function,

find this line

if( wd.damage + wd.damage2 ) { //There is a total damage value
add above
wd.damage = 1;

Share this post


Link to post
Share on other sites
  • 0

try /miss in the client side...

 

:meow:

Oh, well I was kind of hoping for a permanent server-sided edit so that instead of misses and blocks, all characters do 1 damage (so that knockback and other status effects are still applied).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.