Browse Source

Bootysim displays chance.

master
MagicBot 1 year ago
parent
commit
820eeaee72
  1. 16
      src/engine/devcmd/cmds/SimulateBootyCmd.java

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

@ -15,17 +15,17 @@ public class SimulateBootyCmd extends AbstractDevCmd {
} }
@Override @Override
protected void _doCmd(PlayerCharacter pc, String[] words, protected void _doCmd(PlayerCharacter playerCharacter, String[] words,
AbstractGameObject target) { AbstractGameObject target) {
// Arg Count Check // Arg Count Check
if (words.length != 1) { if (words.length != 1) {
this.sendUsage(pc); this.sendUsage(playerCharacter);
return; return;
} }
if (pc == null) if (playerCharacter == null)
return; return;
String newline = "\r\n "; String newline = "\r\n ";
@ -34,17 +34,14 @@ public class SimulateBootyCmd extends AbstractDevCmd {
Mob mobile = Mob.getMob(targetID); Mob mobile = Mob.getMob(targetID);
if (mobile == null) if (mobile == null)
throwbackError(pc, "Mobile with ID " + targetID throwbackError(playerCharacter, "Mobile with ID " + targetID
+ " not found"); + " not found");
else else
target = mobile; target = mobile;
if (target == null) { if (target == null) {
throwbackError(pc, "Target is unknown or of an invalid type." throwbackError(playerCharacter, "Select or supply valid mobile uuid");
+ newline + "Type ID: 0x"
+ pc.getLastTargetType().toString()
+ " Table ID: " + pc.getLastTargetID());
return; return;
} }
@ -72,6 +69,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>();
ArrayList<Item> EquipmentDrops = new ArrayList<Item>(); ArrayList<Item> EquipmentDrops = new ArrayList<Item>();
int failures = 0; int failures = 0;
int goldAmount = 0; int goldAmount = 0;
@ -151,7 +149,7 @@ public class SimulateBootyCmd extends AbstractDevCmd {
output += "EQUIPMENT DROPPED: " + EquipmentDrops.size() + newline; output += "EQUIPMENT DROPPED: " + EquipmentDrops.size() + newline;
output += "FAILED ROLLS: " + failures + newline; output += "FAILED ROLLS: " + failures + newline;
throwbackInfo(pc, output); throwbackInfo(playerCharacter, output);
} }
@Override @Override

Loading…
Cancel
Save