|
|
@ -51,6 +51,7 @@ public class simulateBootyCmd extends AbstractDevCmd { |
|
|
|
Enum.GameObjectType objType = target.getObjectType(); |
|
|
|
Enum.GameObjectType objType = target.getObjectType(); |
|
|
|
String output; |
|
|
|
String output; |
|
|
|
output = "Booty Simulation:" + newline; |
|
|
|
output = "Booty Simulation:" + newline; |
|
|
|
|
|
|
|
|
|
|
|
switch (objType) { |
|
|
|
switch (objType) { |
|
|
|
case Building: |
|
|
|
case Building: |
|
|
|
case PlayerCharacter: |
|
|
|
case PlayerCharacter: |
|
|
@ -70,9 +71,11 @@ public class simulateBootyCmd extends AbstractDevCmd { |
|
|
|
ArrayList<Item> simulatedBooty = new ArrayList<>(); |
|
|
|
ArrayList<Item> simulatedBooty = new ArrayList<>(); |
|
|
|
if(isZone == false){ |
|
|
|
if(isZone == false){ |
|
|
|
//simulate individual mob booty
|
|
|
|
//simulate individual mob booty
|
|
|
|
|
|
|
|
output += "Simulated " + iterations + " Iterations 0n " + mob.parentZone.zoneMobSet.size() + " Mobs." + newline; |
|
|
|
simulatedBooty = simulateMobBooty(mob, iterations); |
|
|
|
simulatedBooty = simulateMobBooty(mob, iterations); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
|
|
|
|
output += "Simulated " + iterations + " Iterations 0n " + mob.getName() + newline; |
|
|
|
simulatedBooty = simulateZoneBooty(mob.getParentZone(), iterations); |
|
|
|
simulatedBooty = simulateZoneBooty(mob.getParentZone(), iterations); |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
@ -105,26 +108,27 @@ public class simulateBootyCmd extends AbstractDevCmd { |
|
|
|
} catch (Exception ex) { |
|
|
|
} catch (Exception ex) { |
|
|
|
failures++; |
|
|
|
failures++; |
|
|
|
} |
|
|
|
} |
|
|
|
output += "Glass Drops:" + GlassItems.size() + newline; |
|
|
|
output += "Time Required To Gain Simulated Booty: " + mob.getMobBase().getSpawnTime() * iterations + " Seconds" + newline; |
|
|
|
|
|
|
|
output += "Glass Drops:" + GlassItems.size() + newline; |
|
|
|
for(Item glassItem : GlassItems){ |
|
|
|
for(Item glassItem : GlassItems){ |
|
|
|
output += glassItem.getName() + newline; |
|
|
|
output += glassItem.getName() + newline; |
|
|
|
} |
|
|
|
} |
|
|
|
output += "Rune Drops:" + Runes.size() + newline; |
|
|
|
output += "Rune Drops:" + Runes.size() + newline; |
|
|
|
for(Item runeItem : Runes){ |
|
|
|
for(Item runeItem : Runes){ |
|
|
|
output += runeItem.getName() + newline; |
|
|
|
output += runeItem.getName() + newline; |
|
|
|
} |
|
|
|
} |
|
|
|
output += "Contract Drops:" + Contracts.size() + newline; |
|
|
|
output += "Contract Drops:" + Contracts.size() + newline; |
|
|
|
for(Item contractItem : Contracts){ |
|
|
|
for(Item contractItem : Contracts){ |
|
|
|
output += contractItem.getName() + newline; |
|
|
|
output += contractItem.getName() + newline; |
|
|
|
} |
|
|
|
} |
|
|
|
output += "Resource Drops:" + Resources.size() + newline; |
|
|
|
output += "Resource Drops:" + Resources.size() + newline; |
|
|
|
for(Item resourceItem : Contracts){ |
|
|
|
for(Item resourceItem : Contracts){ |
|
|
|
output += resourceItem.getName() + newline; |
|
|
|
output += resourceItem.getName() + newline; |
|
|
|
} |
|
|
|
} |
|
|
|
output += "OFFERINGS DROPPED: " + Offerings.size() + newline; |
|
|
|
output += "OFFERINGS DROPPED: " + Offerings.size() + newline; |
|
|
|
output += "OTHER ITEMS DROPPED: " + OtherDrops.size() + newline; |
|
|
|
output += "OTHER ITEMS DROPPED: " + OtherDrops.size() + newline; |
|
|
|
output += "FAILED ROLLS: " + failures + newline; |
|
|
|
output += "FAILED ROLLS: " + failures + newline; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
throwbackInfo(pc, output); |
|
|
|
throwbackInfo(pc, output); |
|
|
|
} |
|
|
|
} |
|
|
|