Browse Source

Hotfix: Removing extra glass roll.

master
MagicBot 1 year ago
parent
commit
140ec1b08d
  1. 7
      src/engine/loot/LootManager.java

7
src/engine/loot/LootManager.java

@ -16,7 +16,6 @@ import engine.gameManager.ZoneManager;
import engine.net.DispatchMessage; import engine.net.DispatchMessage;
import engine.net.client.msg.chat.ChatSystemMsg; import engine.net.client.msg.chat.ChatSystemMsg;
import engine.objects.*; import engine.objects.*;
import org.pmw.tinylog.Logger;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
@ -80,10 +79,6 @@ public class LootManager {
private static void RunBootySet(ArrayList<BootySetEntry> entries, Mob mob, float multiplier, boolean inHotzone, boolean fromDeath) { private static void RunBootySet(ArrayList<BootySetEntry> entries, Mob mob, float multiplier, boolean inHotzone, boolean fromDeath) {
if (fromDeath) { if (fromDeath) {
DropEquipment(mob,multiplier); DropEquipment(mob,multiplier);
if (inHotzone) {
//all mobs in HZ get to roll for glass
RollForGlass(mob);
}
return; return;
} }
for (BootySetEntry bse : entries) { for (BootySetEntry bse : entries) {
@ -238,7 +233,7 @@ public class LootManager {
} }
public static void RollForGlass(Mob mob){ public static void RollForGlass(Mob mob){
int glassRoll = ThreadLocalRandom.current().nextInt(100) + 1; int glassRoll = ThreadLocalRandom.current().nextInt(100) + 1;
if (glassRoll >= 99 - mob.getRank()){ if (glassRoll >= 99) {
int roll2 = TableRoll(mob.level); int roll2 = TableRoll(mob.level);
if (itemTables.get(126).getRowForRange(roll2) == null) { if (itemTables.get(126).getRowForRange(roll2) == null) {
return; return;

Loading…
Cancel
Save