Browse Source

all footwear has equal chance to drop movespeed suffixes

lakebane-jobs
FatBoy-DOTC 2 days ago
parent
commit
8106b100ec
  1. 4
      src/engine/gameManager/LootManager.java

4
src/engine/gameManager/LootManager.java

@ -14,6 +14,7 @@ import engine.net.DispatchMessage;
import engine.net.client.msg.ErrorPopupMsg; import engine.net.client.msg.ErrorPopupMsg;
import engine.net.client.msg.chat.ChatSystemMsg; import engine.net.client.msg.chat.ChatSystemMsg;
import engine.objects.*; import engine.objects.*;
import engine.server.MBServerStatics;
import org.pmw.tinylog.Logger; import org.pmw.tinylog.Logger;
import java.util.ArrayList; import java.util.ArrayList;
@ -475,8 +476,9 @@ public enum LootManager {
if (suffixMod == null) if (suffixMod == null)
return inItem; return inItem;
int moveSpeedRoll = ThreadLocalRandom.current().nextInt(100); int moveSpeedRoll = ThreadLocalRandom.current().nextInt(100);
if(moveSpeedRoll < 10){ if(inItem.getItemBase().getValidSlot() == MBServerStatics.SLOT_FEET && moveSpeedRoll < 10){
int rankRoll = ThreadLocalRandom.current().nextInt(10); int rankRoll = ThreadLocalRandom.current().nextInt(10);
String suffixSpeed = "SUF-148"; String suffixSpeed = "SUF-148";
switch(rankRoll) { switch(rankRoll) {

Loading…
Cancel
Save