Fixed Bug: #0910 - Fuzzy Comparison (Split Damage at 99%)

This commit is contained in:
AlgorithmX2 2014-08-17 04:21:07 -05:00
parent 4338caa782
commit 3831fdd235

View file

@ -519,6 +519,14 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
{ {
newDef.dspDamage = 0; newDef.dspDamage = 0;
} }
else if ( fuzzy == FuzzyMode.PERCENT_99 )
{
if ( def.damageValue == 0 )
newDef.dspDamage = 0;
else
newDef.dspDamage = 1;
}
else else
{ {
int breakpoint = fuzzy.calculateBreakPoint( def.maxDamage ); int breakpoint = fuzzy.calculateBreakPoint( def.maxDamage );
@ -551,6 +559,13 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
{ {
newDef.dspDamage = def.maxDamage + 1; newDef.dspDamage = def.maxDamage + 1;
} }
else if ( fuzzy == FuzzyMode.PERCENT_99 )
{
if ( def.damageValue == 0 )
newDef.dspDamage = 0;
else
newDef.dspDamage = def.maxDamage + 1;
}
else else
{ {
int breakpoint = fuzzy.calculateBreakPoint( def.maxDamage ); int breakpoint = fuzzy.calculateBreakPoint( def.maxDamage );