Pages:<< prev 1 next >>
Sorcerer

GroupMembers
Posts600
JoinedDec 3, 2008
So I have this bug where no matter the Stat difference you can't seem to hit the mob. I'm not sure where to even start looking. Any direction would be helpful. I know it's in fight.c but I'm not sure where to look.
Sorcerer

GroupMembers
Posts600
JoinedDec 3, 2008
Will this work like I want it too?
I have each thing starting at 100 so for attack if its 115 it will add 15% and if its 95 it will take 5%.. The opposite for defense..
I have each thing starting at 100 so for attack if its 115 it will add 15% and if its 95 it will take 5%.. The opposite for defense..
double race = 0;
//Attack Bonuses - Frieza
if ( ch->race->atkperc > 100 )
{
// add Damage
race = (ch->race->atkperc - 100 );
race = (race * .01 );
race = race + 1;
dam = (dam * race);
}
else
{
// Reduce Damage
race = (ch->race->atkperc );
race = (race * .01);
dam = (dam * race);
}
// Defense Bonuses
//reduce Damage
if ( victim->race->defperc > 100 )
{
race = (victim->race->defperc - 100 );
race = (race * .01 );
race = 1 - race;
dam = (dam * race);
}
else
{
// Add Damage
race = (victim->race->defperc - 100 );
race = (race * .01);
race = race + 1;
dam = (dam * race);
}
Pages:<< prev 1 next >>