mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-21 20:18:14 +07:00
This commit is contained in:
parent
9225c6bb1f
commit
f7273556eb
@ -21,6 +21,8 @@ public class PropertyList {
|
||||
private static final int[] POISONDMG = {Stat.poisonmindam, Stat.poisonmaxdam, Stat.poisonlength};
|
||||
private static final int[] ENHANCEDDMG = {Stat.item_mindamage_percent, Stat.item_maxdamage_percent};
|
||||
private static final int[] MINDMG = {Stat.mindamage, Stat.maxdamage};
|
||||
private static final int[] MINDMG2 = {Stat.mindamage, Stat.secondary_mindamage, Stat.item_throw_mindamage};
|
||||
private static final int[] MAXDMG2 = {Stat.maxdamage, Stat.secondary_maxdamage, Stat.item_throw_maxdamage};
|
||||
|
||||
final IntMap<Stat.Instance> props = new IntMap<>();
|
||||
|
||||
@ -150,6 +152,14 @@ public class PropertyList {
|
||||
props.put(Stat.poisondam, new Stat.Aggregate(Stat.poisondam, "strModPoisonDamage", "strModPoisonDamageRange", poisonmindam, poisonmaxdam, poisonlength));
|
||||
}
|
||||
|
||||
if (containsAll(MINDMG2) && allEqual(MINDMG2)) {
|
||||
for (int i = 1; i < MINDMG2.length; i++) props.remove(MINDMG2[i]);
|
||||
}
|
||||
|
||||
if (containsAll(MAXDMG2) && allEqual(MAXDMG2)) {
|
||||
for (int i = 1; i < MAXDMG2.length; i++) props.remove(MAXDMG2[i]);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user