Fixing last day attendance reward.
This commit is contained in:
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user