Browse Source

add goldTally to simulateBooty command

master
FatBoy-DOTC 1 year ago
parent
commit
9a03dc36c6
  1. 15
      src/engine/devcmd/cmds/simulateBootyCmd.java

15
src/engine/devcmd/cmds/simulateBootyCmd.java

@ -90,6 +90,7 @@ public class simulateBootyCmd extends AbstractDevCmd {
ArrayList<Item> Offerings = new ArrayList<Item>(); ArrayList<Item> Offerings = new ArrayList<Item>();
ArrayList<Item> OtherDrops = new ArrayList<Item>(); ArrayList<Item> OtherDrops = new ArrayList<Item>();
int failures = 0; int failures = 0;
int goldAmount = 0;
for (int i = 0; i < 100; ++i) { for (int i = 0; i < 100; ++i) {
try { try {
@ -109,20 +110,16 @@ public class simulateBootyCmd extends AbstractDevCmd {
Runes.add(lootItem); Runes.add(lootItem);
break; break;
case WEAPON: //WEAPON case WEAPON: //WEAPON
if (lootItem.getItemBase().isGlass()) { if (lootItem.getItemBase().isGlass())
GlassItems.add(lootItem); GlassItems.add(lootItem);
} else { else
OtherDrops.add(lootItem); OtherDrops.add(lootItem);
if (lootItem.getName().toLowerCase().contains("crimson") || lootItem.getName().toLowerCase().contains("vorgrim") || lootItem.getName().toLowerCase().contains("bell")) { break;
output += lootItem.getName() + newline; case GOLD:
} goldAmount += lootItem.getNumOfItems();
}
break; break;
default: default:
OtherDrops.add(lootItem); OtherDrops.add(lootItem);
if (lootItem.getName().toLowerCase().contains("crimson") || lootItem.getName().toLowerCase().contains("vorgrim") || lootItem.getName().toLowerCase().contains("bell")) {
output += lootItem.getName() + newline;
}
break; break;
} }
} }

Loading…
Cancel
Save