Don't default to the achievement gem reward for level ups
This commit is contained in:
parent
a8c852e80d
commit
739d26f0e4
@ -72,6 +72,7 @@ public class AchievementSummaryComponent extends ComplexSummaryComponent
|
|||||||
{
|
{
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
|
_donationManager.rewardCurrencyUntilSuccess(GlobalCurrency.GEM, player, achievement.getName(), achievement.getGemReward());
|
||||||
rewardPlayer(player, achievement, rewards);
|
rewardPlayer(player, achievement, rewards);
|
||||||
}
|
}
|
||||||
}, player, achievement.getName());
|
}, player, achievement.getName());
|
||||||
@ -154,7 +155,7 @@ public class AchievementSummaryComponent extends ComplexSummaryComponent
|
|||||||
|
|
||||||
private int[] getRewards(Achievement achievement, int level)
|
private int[] getRewards(Achievement achievement, int level)
|
||||||
{
|
{
|
||||||
int gems = achievement.getGemReward();
|
int gems = 0;
|
||||||
int crowns = 0;
|
int crowns = 0;
|
||||||
int xp = 0;
|
int xp = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user