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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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