From 9a03dc36c634f1007a9bbd878319afca030d2a1c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 3 Aug 2023 19:24:35 -0500 Subject: [PATCH] add goldTally to simulateBooty command --- src/engine/devcmd/cmds/simulateBootyCmd.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/engine/devcmd/cmds/simulateBootyCmd.java b/src/engine/devcmd/cmds/simulateBootyCmd.java index ac51788e..76830acf 100644 --- a/src/engine/devcmd/cmds/simulateBootyCmd.java +++ b/src/engine/devcmd/cmds/simulateBootyCmd.java @@ -90,6 +90,7 @@ public class simulateBootyCmd extends AbstractDevCmd { ArrayList Offerings = new ArrayList(); ArrayList OtherDrops = new ArrayList(); int failures = 0; + int goldAmount = 0; for (int i = 0; i < 100; ++i) { try { @@ -109,20 +110,16 @@ public class simulateBootyCmd extends AbstractDevCmd { Runes.add(lootItem); break; case WEAPON: //WEAPON - if (lootItem.getItemBase().isGlass()) { + if (lootItem.getItemBase().isGlass()) GlassItems.add(lootItem); - } else { + else OtherDrops.add(lootItem); - if (lootItem.getName().toLowerCase().contains("crimson") || lootItem.getName().toLowerCase().contains("vorgrim") || lootItem.getName().toLowerCase().contains("bell")) { - output += lootItem.getName() + newline; - } - } + break; + case GOLD: + goldAmount += lootItem.getNumOfItems(); break; default: OtherDrops.add(lootItem); - if (lootItem.getName().toLowerCase().contains("crimson") || lootItem.getName().toLowerCase().contains("vorgrim") || lootItem.getName().toLowerCase().contains("bell")) { - output += lootItem.getName() + newline; - } break; } }