Fixing last day attendance reward.
This commit is contained in:
parent
6ce714978b
commit
d4993f701e
@ -14138,7 +14138,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -14188,7 +14188,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -14202,7 +14202,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -14191,7 +14191,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -14191,7 +14191,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -14197,7 +14197,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -13963,7 +13963,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -13970,7 +13970,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -13954,7 +13954,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
@ -13954,7 +13954,7 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
canBeRewarded = true;
|
||||
// Reset index if max is reached.
|
||||
if (rewardIndex >= (AttendanceRewardData.getInstance().getRewardsCount() - 1))
|
||||
if (rewardIndex >= AttendanceRewardData.getInstance().getRewardsCount())
|
||||
{
|
||||
rewardIndex = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user