Changed daily keys and points
This commit is contained in:
@@ -33,10 +33,11 @@ namespace TOOHUCardAPI.Data.Services
|
||||
|
||||
private async Task<User> HandleDailyLoginBonus(User user)
|
||||
{
|
||||
user.KeyTotal += AppSettings.DailyKeyBonus;
|
||||
int dailyBonus = user.PetLevel + 1;
|
||||
user.KeyTotal += dailyBonus;
|
||||
user.LastDailyLoginBonus = DateTime.Now;;
|
||||
await _userRepository.UpdateUser(user);
|
||||
_logger.LogInformation("User {SteamId} received a daily login bonus. Keys earned: {DailyKeyBonus}. New Key total: {KeyTotal}", user.SteamId, AppSettings.DailyKeyBonus, user.KeyTotal);
|
||||
_logger.LogInformation("User {SteamId} received a daily login bonus. Keys earned: {DailyKeyBonus}. New Key total: {KeyTotal}", user.SteamId, dailyBonus, user.KeyTotal);
|
||||
return user;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user