Fixed issue with achievement badges
parent
b5fbeb7852
commit
ce30ee601b
|
@ -72,6 +72,7 @@ public class AchievementManager : IAchievementManager
|
||||||
Habbo = session.Habbo,
|
Habbo = session.Habbo,
|
||||||
Code = $"{achievement.Badge}1"
|
Code = $"{achievement.Badge}1"
|
||||||
};
|
};
|
||||||
|
session.Habbo.Badges.Add(badge);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -91,11 +92,10 @@ public class AchievementManager : IAchievementManager
|
||||||
Habbo = session.Habbo,
|
Habbo = session.Habbo,
|
||||||
Code = $"{achievement.Badge}1"
|
Code = $"{achievement.Badge}1"
|
||||||
};
|
};
|
||||||
|
session.Habbo.Badges.Add(badge);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_badgesRepository.SaveAsync(badge);
|
|
||||||
|
|
||||||
session.Habbo.AchievementScore += achievementLevel.Points;
|
session.Habbo.AchievementScore += achievementLevel.Points;
|
||||||
|
|
||||||
if (achievementLevel.RewardAmount > 0)
|
if (achievementLevel.RewardAmount > 0)
|
||||||
|
|
Loading…
Reference in New Issue