Fixing last day attendance reward.

This commit is contained in:
MobiusDevelopment
2019-04-07 03:42:08 +00:00
parent 6ce714978b
commit d4993f701e
10 changed files with 10 additions and 10 deletions
@@ -14138,7 +14138,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -14188,7 +14188,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -14202,7 +14202,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -14191,7 +14191,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -14191,7 +14191,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -14197,7 +14197,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -13963,7 +13963,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -13970,7 +13970,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -13954,7 +13954,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }
@@ -13954,7 +13954,7 @@ public final class PlayerInstance extends Playable
{ {
canBeRewarded = true; canBeRewarded = true;
// Reset index if max is reached. // Reset index if max is reached.
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1)) if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
{ {
rewardIndex = 0; rewardIndex = 0;
} }