From 1fa5019ddb1c8cbccf11803a1b269c603418bb34 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 27 Jul 2023 19:06:31 -0500 Subject: [PATCH] regression formula for min mob loot roll --- src/engine/devcmd/cmds/InfoCmd.java | 2 +- src/engine/loot/LootManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/devcmd/cmds/InfoCmd.java b/src/engine/devcmd/cmds/InfoCmd.java index 1e220925..5f96dd13 100644 --- a/src/engine/devcmd/cmds/InfoCmd.java +++ b/src/engine/devcmd/cmds/InfoCmd.java @@ -495,7 +495,7 @@ public class InfoCmd extends AbstractDevCmd { if(max > 321){ max = 321; } - int min = targetMob.level * 2; + int min = (int)(4.469 * targetMob.level - 3.469); output += "Min Loot Roll = " + min; output += "Max Loot Roll = " + max; break; diff --git a/src/engine/loot/LootManager.java b/src/engine/loot/LootManager.java index 172033ae..49d80f60 100644 --- a/src/engine/loot/LootManager.java +++ b/src/engine/loot/LootManager.java @@ -223,7 +223,7 @@ public class LootManager { if(max > 321){ max = 321; } - int min = mobLevel * 2; + int min = (int)(4.469 * mobLevel - 3.469); int roll = ThreadLocalRandom.current().nextInt(max-min) + min; return roll; }