show greater/legendaries only if they can actually drop (they don't have noLegendary tag)
This commit is contained in:
parent
19380da36f
commit
15ebedce84
1 changed files with 3 additions and 0 deletions
|
|
@ -154,6 +154,9 @@ public class Modifiers {
|
|||
if (highest == null) {
|
||||
return res; // empty
|
||||
}
|
||||
if (modifierTierGroup.getTags().contains("noLegendary")){
|
||||
return res; // empty
|
||||
}
|
||||
int index = Math.min(highest.getModifierTier() + modifierCategory.getTierIncrease(), modifierTierGroup.size() - 1);
|
||||
var legendTier = modifierTierGroup.get(index);
|
||||
if (legendTier == null || legendTier.getWeight() == 0){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue