Browse Source

bootysim command work

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
3e15fc8206
  1. 6
      src/engine/devcmd/cmds/SimulateBootyCmd.java

6
src/engine/devcmd/cmds/SimulateBootyCmd.java

@ -10,6 +10,8 @@ import java.util.ArrayList;
import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.ThreadLocalRandom;
public class SimulateBootyCmd extends AbstractDevCmd { public class SimulateBootyCmd extends AbstractDevCmd {
public int simCount = 5000;
public SimulateBootyCmd() { public SimulateBootyCmd() {
super("bootysim"); super("bootysim");
} }
@ -25,7 +27,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
String output; String output;
output = "Booty Simulation:" + newline; output = "Booty Simulation: Rolls:" + simCount + newline;
Mob mob = (Mob) target; Mob mob = (Mob) target;
output += "Name: " + mob.getName() + newline; output += "Name: " + mob.getName() + newline;
@ -51,7 +53,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
int failures = 0; int failures = 0;
int goldAmount = 0; int goldAmount = 0;
for (int i = 0; i < 1000; ++i) { for (int i = 0; i < simCount; ++i) {
try { try {
mob.loadInventory(); mob.loadInventory();

Loading…
Cancel
Save