Skip to content

Commit

Permalink
feat: add more achievements
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Jul 17, 2023
1 parent f86bebe commit 93a959c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
39 changes: 39 additions & 0 deletions MHFZ_Overlay/Models/Collections/AchievementsCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5552,5 +5552,44 @@ public static class AchievementsCollection
Hint = string.Empty,
}
},
{
401, new Achievement()
{
CompletionDate = DateTime.UnixEpoch,
Title = "Solid Determination Up",
Description = string.Empty,
Rank = AchievementRank.Platinum,
Image = @"pack://application:,,,/MHFZ_Overlay;component/Assets/Icons/achievement/medal_platinum.jpg",
Objective = "Complete a zenith gauntlet without fainting.",
IsSecret = false,
Hint = string.Empty,
}
},
{
402, new Achievement()
{
CompletionDate = DateTime.UnixEpoch,
Title = "Gauntlet Conqueror",
Description = string.Empty,
Rank = AchievementRank.Platinum,
Image = @"pack://application:,,,/MHFZ_Overlay;component/Assets/Icons/achievement/medal_platinum.jpg",
Objective = "Complete a solstice gauntlet without fainting.",
IsSecret = false,
Hint = string.Empty,
}
},
{
403, new Achievement()
{
CompletionDate = DateTime.UnixEpoch,
Title = "The Ultimate Gauntlet",
Description = string.Empty,
Rank = AchievementRank.Platinum,
Image = @"pack://application:,,,/MHFZ_Overlay;component/Assets/Icons/achievement/medal_platinum.jpg",
Objective = "Complete a musou gauntlet without fainting.",
IsSecret = false,
Hint = string.Empty,
}
},
});
}
5 changes: 5 additions & 0 deletions MHFZ_Overlay/Services/AchievementService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace MHFZ_Overlay.Services;
using MHFZ_Overlay.Models.Structures;
using MHFZ_Overlay.Services.Contracts;
using Newtonsoft.Json;
using NLog;
using Wpf.Ui.Controls;

public sealed class AchievementService : IAchievementService
Expand Down Expand Up @@ -121,6 +122,7 @@ private bool CheckConditionsForAchievement(int achievementID, DataLoader dataLoa
{
default:
{
LoggerInstance.Error("Achievement ID {0} not found", achievementID);
return false;
}

Expand Down Expand Up @@ -2287,6 +2289,9 @@ join playerGear in databaseManagerInstance.AllPlayerGear on quest.RunID equals p
case 398:
case 399:
case 400:
case 401:
case 402:
case 403:
{
return false;
}
Expand Down

0 comments on commit 93a959c

Please sign in to comment.