|
|
@ -129,20 +129,23 @@ public class simulateBootyCmd extends AbstractDevCmd { |
|
|
|
//if mob is inside hotzone, use the hotzone gold multiplier form the config instead
|
|
|
|
//if mob is inside hotzone, use the hotzone gold multiplier form the config instead
|
|
|
|
multiplier = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue()); |
|
|
|
multiplier = Float.parseFloat(ConfigManager.MB_HOTZONE_DROP_RATE.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
//iterate the booty sets
|
|
|
|
//simulate loot 100 times
|
|
|
|
ArrayList<MobLoot> output1 = new ArrayList<>(); |
|
|
|
for(int i = 0; i < 100; ++i) { |
|
|
|
ArrayList<MobLoot> output2 = new ArrayList<>(); |
|
|
|
//iterate the booty sets
|
|
|
|
if(mob.getMobBase().bootySet != 0 && NPCManager._bootySetMap.containsKey(mob.getMobBase().bootySet)) { |
|
|
|
ArrayList<MobLoot> output1 = new ArrayList<>(); |
|
|
|
output1 = RunBootySet(NPCManager._bootySetMap.get(mob.getMobBase().bootySet), mob, multiplier, inHotzone); |
|
|
|
ArrayList<MobLoot> output2 = new ArrayList<>(); |
|
|
|
} |
|
|
|
if (mob.getMobBase().bootySet != 0 && NPCManager._bootySetMap.containsKey(mob.getMobBase().bootySet)) { |
|
|
|
if(mob.bootySet != 0) { |
|
|
|
output1 = RunBootySet(NPCManager._bootySetMap.get(mob.getMobBase().bootySet), mob, multiplier, inHotzone); |
|
|
|
output2 =RunBootySet(NPCManager._bootySetMap.get(mob.bootySet), mob, multiplier, inHotzone); |
|
|
|
} |
|
|
|
} |
|
|
|
if (mob.bootySet != 0) { |
|
|
|
for(MobLoot lootItem : output1){ |
|
|
|
output2 = RunBootySet(NPCManager._bootySetMap.get(mob.bootySet), mob, multiplier, inHotzone); |
|
|
|
outList.add((lootItem)); |
|
|
|
} |
|
|
|
} |
|
|
|
for (MobLoot lootItem : output1) { |
|
|
|
for(MobLoot lootItem : output2){ |
|
|
|
outList.add((lootItem)); |
|
|
|
outList.add((lootItem)); |
|
|
|
} |
|
|
|
|
|
|
|
for (MobLoot lootItem : output2) { |
|
|
|
|
|
|
|
outList.add((lootItem)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return outList; |
|
|
|
return outList; |
|
|
|
} |
|
|
|
} |
|
|
|