forked from 2009Scape/Server
Give the correct amount of slayer task points on streaks that are a multiple of 50.
This commit is contained in:
parent
235b4aba34
commit
d7853c2b07
1 changed files with 3 additions and 3 deletions
|
|
@ -113,10 +113,10 @@ public final class SlayerManager {
|
|||
flags.setCompletedTasks(flags.getCompletedTasks() + 1);
|
||||
if ((flags.getCompletedTasks() > 4 || flags.canEarnPoints() ) && flags.getMaster() != Master.TURAEL && flags.getPoints() < 64000) {
|
||||
int points = flags.getMaster().getTaskPoints()[0];
|
||||
if (flags.getTaskStreak() % 10 == 0) {
|
||||
points = flags.getMaster().getTaskPoints()[1];
|
||||
} else if (flags.getTaskStreak() % 50 == 0) {
|
||||
if (flags.getTaskStreak() % 50 == 0) {
|
||||
points = flags.getMaster().getTaskPoints()[2];
|
||||
} else if (flags.getTaskStreak() % 10 == 0) {
|
||||
points = flags.getMaster().getTaskPoints()[1];
|
||||
}
|
||||
flags.incrementPoints(points);
|
||||
if (flags.getPoints() > 64000) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue