forked from MagicBane/Server
simulate booty command work
This commit is contained in:
@@ -51,6 +51,7 @@ public class simulateBootyCmd extends AbstractDevCmd {
|
||||
Enum.GameObjectType objType = target.getObjectType();
|
||||
String output;
|
||||
output = "Booty Simulation:" + newline;
|
||||
|
||||
switch (objType) {
|
||||
case Building:
|
||||
case PlayerCharacter:
|
||||
@@ -70,9 +71,11 @@ public class simulateBootyCmd extends AbstractDevCmd {
|
||||
ArrayList<Item> simulatedBooty = new ArrayList<>();
|
||||
if(isZone == false){
|
||||
//simulate individual mob booty
|
||||
output += "Simulated " + iterations + " Iterations 0n " + mob.parentZone.zoneMobSet.size() + " Mobs." + newline;
|
||||
simulatedBooty = simulateMobBooty(mob, iterations);
|
||||
}
|
||||
else {
|
||||
output += "Simulated " + iterations + " Iterations 0n " + mob.getName() + newline;
|
||||
simulatedBooty = simulateZoneBooty(mob.getParentZone(), iterations);
|
||||
}
|
||||
try {
|
||||
@@ -105,6 +108,7 @@ public class simulateBootyCmd extends AbstractDevCmd {
|
||||
} catch (Exception ex) {
|
||||
failures++;
|
||||
}
|
||||
output += "Time Required To Gain Simulated Booty: " + mob.getMobBase().getSpawnTime() * iterations + " Seconds" + newline;
|
||||
output += "Glass Drops:" + GlassItems.size() + newline;
|
||||
for(Item glassItem : GlassItems){
|
||||
output += glassItem.getName() + newline;
|
||||
|
||||
Reference in New Issue
Block a user