Browse Source

cleanup

master
FatBoy-DOTC 1 year ago
parent
commit
66b047d091
  1. 37
      src/engine/loot/LootManager.java

37
src/engine/loot/LootManager.java

@ -80,26 +80,25 @@ 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);
return; } else {
} for (BootySetEntry bse : entries) {
int hotzoneTable = 0; switch (bse.bootyType) {
for (BootySetEntry bse : entries) { case "GOLD":
switch (bse.bootyType) { GenerateGoldDrop(mob, bse, inHotzone);
case "GOLD": break;
GenerateGoldDrop(mob, bse, inHotzone); case "LOOT":
break; GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop
case "LOOT": if (inHotzone) {
GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop if (generalItemTables.containsKey(bse.lootTable + 1))
if (inHotzone) { GenerateLootDrop(mob, bse.lootTable + 1, bse.dropChance, multiplier);//generate loot drop from hotzone table
if (generalItemTables.containsKey(bse.lootTable + 1)) //else
GenerateLootDrop(mob, bse.lootTable + 1, bse.dropChance,multiplier);//generate loot drop from hotzone table
//else
//GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop //GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop
} }
break; break;
case "ITEM": case "ITEM":
GenerateItemLootDrop(mob, bse, multiplier); GenerateItemLootDrop(mob, bse, multiplier);
break; break;
}
} }
} }
} }

Loading…
Cancel
Save