forked from MagicBane/Server
enable simulateBooty command
This commit is contained in:
@@ -129,6 +129,8 @@ 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());
|
||||||
}
|
}
|
||||||
|
//simulate loot 100 times
|
||||||
|
for(int i = 0; i < 100; ++i) {
|
||||||
//iterate the booty sets
|
//iterate the booty sets
|
||||||
ArrayList<MobLoot> output1 = new ArrayList<>();
|
ArrayList<MobLoot> output1 = new ArrayList<>();
|
||||||
ArrayList<MobLoot> output2 = new ArrayList<>();
|
ArrayList<MobLoot> output2 = new ArrayList<>();
|
||||||
@@ -144,6 +146,7 @@ public class simulateBootyCmd extends AbstractDevCmd {
|
|||||||
for (MobLoot lootItem : output2) {
|
for (MobLoot lootItem : output2) {
|
||||||
outList.add((lootItem));
|
outList.add((lootItem));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return outList;
|
return outList;
|
||||||
}
|
}
|
||||||
private static ArrayList<MobLoot> RunBootySet(ArrayList<BootySetEntry> entries, Mob mob, float multiplier, boolean inHotzone) {
|
private static ArrayList<MobLoot> RunBootySet(ArrayList<BootySetEntry> entries, Mob mob, float multiplier, boolean inHotzone) {
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public enum DevCmdManager {
|
|||||||
DevCmdManager.registerDevCmd(new PrintResistsCmd());
|
DevCmdManager.registerDevCmd(new PrintResistsCmd());
|
||||||
DevCmdManager.registerDevCmd(new PrintLocationCmd());
|
DevCmdManager.registerDevCmd(new PrintLocationCmd());
|
||||||
DevCmdManager.registerDevCmd(new InfoCmd());
|
DevCmdManager.registerDevCmd(new InfoCmd());
|
||||||
|
DevCmdManager.registerDevCmd(new simulateBootyCmd());
|
||||||
DevCmdManager.registerDevCmd(new GetHeightCmd());
|
DevCmdManager.registerDevCmd(new GetHeightCmd());
|
||||||
|
|
||||||
// Tester
|
// Tester
|
||||||
|
|||||||
Reference in New Issue
Block a user