Damage < 1, MISS! [REMOVAL]

kbro

New member
Messages
3
Points
0
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:

Code:
damage &gt; 0 ? damage : 1;
 
Last edited by a moderator:
try /miss in the client side...

default_ani_meow.gif


 
try /miss in the client side...

default_ani_meow.gif
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).

 
inside battle_calc_weapon_attack function,

find this line

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