Browse Source

cleanup

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

7
src/engine/loot/LootManager.java

@ -80,9 +80,7 @@ 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 {
}
int hotzoneTable = 0;
for (BootySetEntry bse : entries) { for (BootySetEntry bse : entries) {
switch (bse.bootyType) { switch (bse.bootyType) {
case "GOLD": case "GOLD":
@ -92,7 +90,7 @@ public class LootManager {
GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop
if (inHotzone) { if (inHotzone) {
if (generalItemTables.containsKey(bse.lootTable + 1)) if (generalItemTables.containsKey(bse.lootTable + 1))
GenerateLootDrop(mob, bse.lootTable + 1, bse.dropChance,multiplier);//generate loot drop from hotzone table GenerateLootDrop(mob, bse.lootTable + 1, bse.dropChance, multiplier);//generate loot drop from hotzone table
//else //else
//GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop //GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier);//generate normal loot drop
} }
@ -103,6 +101,7 @@ public class LootManager {
} }
} }
} }
}
public static MobLoot getGenTableItem(int genTableID, Mob mob) { public static MobLoot getGenTableItem(int genTableID, Mob mob) {
if (genTableID == 0 || mob == null || generalItemTables.containsKey(genTableID) == false) { if (genTableID == 0 || mob == null || generalItemTables.containsKey(genTableID) == false) {
return null; return null;

Loading…
Cancel
Save