hotfix mob roll chance

This commit is contained in:
2023-07-19 17:18:46 -05:00
parent 39ceef99ea
commit 4bd158cc78
+2 -2
View File
@@ -97,7 +97,7 @@ public class LootManager {
int roll = ThreadLocalRandom.current().nextInt(101); int roll = ThreadLocalRandom.current().nextInt(101);
switch (bse.bootyType) { switch (bse.bootyType) {
case "GOLD": case "GOLD":
if (roll >= (bse.dropChance * multiplier)) { if (roll > (bse.dropChance * multiplier)) {
//early exit, failed to hit minimum chance roll OR booty was generated from mob's death //early exit, failed to hit minimum chance roll OR booty was generated from mob's death
break; break;
} }
@@ -109,7 +109,7 @@ public class LootManager {
} }
break; break;
case "LOOT": case "LOOT":
if (roll >= (bse.dropChance * multiplier)) { if (roll > (bse.dropChance * multiplier)) {
//early exit, failed to hit minimum chance roll OR booty was generated from mob's death //early exit, failed to hit minimum chance roll OR booty was generated from mob's death
break; break;
} }