removed unncessary stuff

balanced rewards
This commit is contained in:
Cheese 2015-10-31 14:33:41 +11:00
parent a92a52f009
commit 23be8aa1dd
3 changed files with 3 additions and 19 deletions

View File

@ -29,7 +29,7 @@ public class MobCommand extends MultiCommandBase<Creature>
{ {
public MobCommand(Creature plugin) public MobCommand(Creature plugin)
{ {
super(plugin, Rank.JNR_DEV, "mob"); super(plugin, Rank.ADMIN, "mob");
AddCommand(new KillCommand(Plugin)); AddCommand(new KillCommand(Plugin));
} }

View File

@ -153,16 +153,4 @@ public class TaskManager extends MiniDbClientPlugin<TaskClient>
return _tasks.get(taskName); return _tasks.get(taskName);
} }
} }
public void createNewTask(final String name)
{
synchronized (_taskLock)
{
if (_tasks.containsKey(name))
return;
}
_repository.addTask(name);
updateTasks();
}
} }

View File

@ -145,10 +145,6 @@ public class TrickOrTreatManager extends MiniPlugin
@Override @Override
public void run() public void run()
{ {
// Create and store a new task if it doesn't exist.
if (_taskManager.getTaskId(task) == null)
_taskManager.createNewTask(task);
if (!_taskManager.hasCompletedTask(event.getPlayer(), task)) if (!_taskManager.hasCompletedTask(event.getPlayer(), task))
{ {
final boolean trick = UtilMath.r(10) > 4; final boolean trick = UtilMath.r(10) > 4;
@ -199,7 +195,7 @@ public class TrickOrTreatManager extends MiniPlugin
if (UtilMath.r(10) > 5) //Coins if (UtilMath.r(10) > 5) //Coins
{ {
final int amount = Math.max(new Random().nextInt(100) + 100, (int) Math.floor(new Random().nextDouble() * 700)); final int amount = Math.max(new Random().nextInt(100) + 100, (int) Math.floor(new Random().nextDouble() * 600));
_donationManager.RewardCoins(new Callback<Boolean>() _donationManager.RewardCoins(new Callback<Boolean>()
{ {
public void run(Boolean completed) public void run(Boolean completed)
@ -220,7 +216,7 @@ public class TrickOrTreatManager extends MiniPlugin
} }
else //Gems else //Gems
{ {
final int amount = Math.max(new Random().nextInt(100) + 100, (int) Math.floor(new Random().nextDouble() * 900)); final int amount = Math.max(new Random().nextInt(100) + 100, (int) Math.floor(new Random().nextDouble() * 600));
_donationManager.RewardGems(new Callback<Boolean>() _donationManager.RewardGems(new Callback<Boolean>()
{ {
public void run(Boolean completed) public void run(Boolean completed)