From 8106b100ecd95f8f955d7cbd6640cf9d8b93079e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 20 Feb 2025 10:39:06 -0600 Subject: [PATCH] all footwear has equal chance to drop movespeed suffixes --- src/engine/gameManager/LootManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 431c4cd6..191913e5 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -14,6 +14,7 @@ import engine.net.DispatchMessage; import engine.net.client.msg.ErrorPopupMsg; import engine.net.client.msg.chat.ChatSystemMsg; import engine.objects.*; +import engine.server.MBServerStatics; import org.pmw.tinylog.Logger; import java.util.ArrayList; @@ -475,8 +476,9 @@ public enum LootManager { if (suffixMod == null) return inItem; + int moveSpeedRoll = ThreadLocalRandom.current().nextInt(100); - if(moveSpeedRoll < 10){ + if(inItem.getItemBase().getValidSlot() == MBServerStatics.SLOT_FEET && moveSpeedRoll < 10){ int rankRoll = ThreadLocalRandom.current().nextInt(10); String suffixSpeed = "SUF-148"; switch(rankRoll) {