Fixed Bug: #0910 - Fuzzy Comparison (Split Damage at 99%)
This commit is contained in:
parent
4338caa782
commit
3831fdd235
1 changed files with 15 additions and 0 deletions
|
@ -519,6 +519,14 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
|
|||
{
|
||||
newDef.dspDamage = 0;
|
||||
}
|
||||
else if ( fuzzy == FuzzyMode.PERCENT_99 )
|
||||
{
|
||||
if ( def.damageValue == 0 )
|
||||
newDef.dspDamage = 0;
|
||||
else
|
||||
newDef.dspDamage = 1;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
int breakpoint = fuzzy.calculateBreakPoint( def.maxDamage );
|
||||
|
@ -551,6 +559,13 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
|
|||
{
|
||||
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
|
||||
{
|
||||
int breakpoint = fuzzy.calculateBreakPoint( def.maxDamage );
|
||||
|
|
Loading…
Reference in a new issue