|
|
@ -73,43 +73,50 @@ public class simulateBootyCmd extends AbstractDevCmd { |
|
|
|
ArrayList<Item> Contracts = new ArrayList<Item>(); |
|
|
|
ArrayList<Item> Contracts = new ArrayList<Item>(); |
|
|
|
ArrayList<Item> Offerings = new ArrayList<Item>(); |
|
|
|
ArrayList<Item> Offerings = new ArrayList<Item>(); |
|
|
|
ArrayList<Item> OtherDrops = new ArrayList<Item>(); |
|
|
|
ArrayList<Item> OtherDrops = new ArrayList<Item>(); |
|
|
|
ArrayList<Item>ReturnedBootyList = new ArrayList<Item>(); |
|
|
|
int failures = 0; |
|
|
|
for(int i = 0; i < 100; ++i) { |
|
|
|
for(int i = 0; i < 100; ++i) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
mob.loadInventory(); |
|
|
|
mob.loadInventory(); |
|
|
|
for(Item lootItem : mob.getCharItemManager().getInventory()){ |
|
|
|
for (Item lootItem : mob.getCharItemManager().getInventory()) { |
|
|
|
ReturnedBootyList.add(lootItem); |
|
|
|
ItemBase ib = lootItem.getItemBase(); |
|
|
|
} |
|
|
|
int ordinal = ib.getType().ordinal(); |
|
|
|
} |
|
|
|
switch (lootItem.getItemBase().getType()) { |
|
|
|
for(Item ml : ReturnedBootyList){ |
|
|
|
case CONTRACT: //CONTRACT
|
|
|
|
if(ml.getItemBase().isGlass() == true){ |
|
|
|
Contracts.add(lootItem); |
|
|
|
GlassItems.add(ml); |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
case OFFERING: //OFFERING
|
|
|
|
switch(ml.getItemBase().getType().ordinal()){ |
|
|
|
Offerings.add(lootItem); |
|
|
|
case 20: //CONTRACT
|
|
|
|
|
|
|
|
Contracts.add(ml); |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
case 33: //OFFERING
|
|
|
|
case RESOURCE: //RESOURCE
|
|
|
|
Offerings.add(ml); |
|
|
|
Resources.add(lootItem); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 34: //RESOURCE
|
|
|
|
case RUNE: //RUNE
|
|
|
|
Resources.add(ml); |
|
|
|
Runes.add(lootItem); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 5: //RUNE
|
|
|
|
case WEAPON: //WEAPON
|
|
|
|
Runes.add(ml); |
|
|
|
if (lootItem.getItemBase().isGlass()) { |
|
|
|
|
|
|
|
GlassItems.add(lootItem); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
OtherDrops.add(lootItem); |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
OtherDrops.add(ml); |
|
|
|
OtherDrops.add(lootItem); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
output += "TOTAL ITEMS DROPPED: " + ReturnedBootyList.size() + newline; |
|
|
|
} catch (Exception ex) { |
|
|
|
|
|
|
|
failures++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
output += "GLASS ITEMS DROPPED: " + GlassItems.size() + newline; |
|
|
|
output += "GLASS ITEMS DROPPED: " + GlassItems.size() + newline; |
|
|
|
output += "RESOURCE STACKS DROPPED: " + Resources.size() + newline; |
|
|
|
output += "RESOURCE STACKS DROPPED: " + Resources.size() + newline; |
|
|
|
output += "RUNES DROPPED: " + Runes.size() + newline; |
|
|
|
output += "RUNES DROPPED: " + Runes.size() + newline; |
|
|
|
output += "CONTRACTS DROPPED: " + Contracts.size() + newline; |
|
|
|
output += "CONTRACTS DROPPED: " + Contracts.size() + newline; |
|
|
|
output += "OFFERINGS DROPPED: " + Offerings.size() + newline; |
|
|
|
output += "OFFERINGS DROPPED: " + Offerings.size() + newline; |
|
|
|
output += "OTHERS DROPPED: " + OtherDrops.size() + newline; |
|
|
|
output += "OTHERS DROPPED: " + OtherDrops.size() + newline; |
|
|
|
|
|
|
|
output += "FAILED ROLLS: " + failures + newline; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|