From 93cd329f20684eb68f8ac6257ffd240af1614dd8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 8 Apr 2023 15:33:51 -0500 Subject: [PATCH] simulate booty command work --- src/engine/devcmd/cmds/simulateBootyCmd.java | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/engine/devcmd/cmds/simulateBootyCmd.java b/src/engine/devcmd/cmds/simulateBootyCmd.java index 11e7ce97..fa6dd2bb 100644 --- a/src/engine/devcmd/cmds/simulateBootyCmd.java +++ b/src/engine/devcmd/cmds/simulateBootyCmd.java @@ -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 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,26 +108,27 @@ public class simulateBootyCmd extends AbstractDevCmd { } catch (Exception ex) { 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){ output += glassItem.getName() + newline; } - output += "Rune Drops:" + Runes.size() + newline; + output += "Rune Drops:" + Runes.size() + newline; for(Item runeItem : Runes){ output += runeItem.getName() + newline; } - output += "Contract Drops:" + Contracts.size() + newline; + output += "Contract Drops:" + Contracts.size() + newline; for(Item contractItem : Contracts){ output += contractItem.getName() + newline; } - output += "Resource Drops:" + Resources.size() + newline; + output += "Resource Drops:" + Resources.size() + newline; for(Item resourceItem : Contracts){ output += resourceItem.getName() + newline; } - output += "OFFERINGS DROPPED: " + Offerings.size() + newline; - output += "OTHER ITEMS DROPPED: " + OtherDrops.size() + newline; - output += "FAILED ROLLS: " + failures + newline; - break; + output += "OFFERINGS DROPPED: " + Offerings.size() + newline; + output += "OTHER ITEMS DROPPED: " + OtherDrops.size() + newline; + output += "FAILED ROLLS: " + failures + newline; + break; } throwbackInfo(pc, output); }