Always at least one stat rolled.

This commit is contained in:
2023-08-07 15:00:18 -04:00
parent 557292a56d
commit e382ba2b9a
+1 -1
View File
@@ -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);