Browse Source

Always at least one stat rolled.

master
MagicBot 1 year ago
parent
commit
e382ba2b9a
  1. 2
      src/engine/objects/ItemFactory.java

2
src/engine/objects/ItemFactory.java

@ -711,7 +711,7 @@ public class ItemFactory {
int rollSuffix = ThreadLocalRandom.current().nextInt(1, 100 + 1); int rollSuffix = ThreadLocalRandom.current().nextInt(1, 100 + 1);
if (rollSuffix < 80) { if (rollSuffix < 80 || prefixEntry == null) {
int randomSuffix = LootManager.TableRoll(vendor.getLevel(), false); int randomSuffix = LootManager.TableRoll(vendor.getLevel(), false);
suffixEntry = ModTableEntry.rollTable(suffixTypeTable.modTableID, randomSuffix); suffixEntry = ModTableEntry.rollTable(suffixTypeTable.modTableID, randomSuffix);

Loading…
Cancel
Save