From e382ba2b9ab0b60413e3fffad5b342af4277e34f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 7 Aug 2023 15:00:18 -0400 Subject: [PATCH] Always at least one stat rolled. --- src/engine/objects/ItemFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/ItemFactory.java b/src/engine/objects/ItemFactory.java index a00e354e..ba120beb 100644 --- a/src/engine/objects/ItemFactory.java +++ b/src/engine/objects/ItemFactory.java @@ -711,7 +711,7 @@ public class ItemFactory { int rollSuffix = ThreadLocalRandom.current().nextInt(1, 100 + 1); - if (rollSuffix < 80) { + if (rollSuffix < 80 || prefixEntry == null) { int randomSuffix = LootManager.TableRoll(vendor.getLevel(), false); suffixEntry = ModTableEntry.rollTable(suffixTypeTable.modTableID, randomSuffix);