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 Feb 4, 2024
1 parent ff1651b commit f0ddef3
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
Binary file added MHFZ_Overlay/Assets/Icons/png/rengoku.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions MHFZ_Overlay/MHFZ_Overlay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@
<None Remove="Assets\Icons\png\quest_info.png" />
<None Remove="Assets\Icons\png\rasta_bar.png" />
<None Remove="Assets\Icons\png\red_soul.png" />
<None Remove="Assets\Icons\png\rengoku.png" />
<None Remove="Assets\Icons\png\right_click.png" />
<None Remove="Assets\Icons\png\sand_clock.png" />
<None Remove="Assets\Icons\png\sand_clock2.png" />
Expand Down Expand Up @@ -1741,6 +1742,7 @@
<Resource Include="Assets\Icons\png\quest_info.png" />
<Resource Include="Assets\Icons\png\rasta_bar.png" />
<Resource Include="Assets\Icons\png\red_soul.png" />
<Resource Include="Assets\Icons\png\rengoku.png" />
<Resource Include="Assets\Icons\png\right_click.png" />
<Resource Include="Assets\Icons\png\sand_clock.png" />
<Resource Include="Assets\Icons\png\sand_clock2.png" />
Expand Down
26 changes: 26 additions & 0 deletions MHFZ_Overlay/Models/Collections/Achievements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5883,6 +5883,32 @@ [] [U] [] [] []
IsSecret = false,
Hint = string.Empty,
}
},
{
447, new Achievement()
{
CompletionDate = DateTime.UnixEpoch,
Title = "The Long and Winding Road",
Description = string.Empty,
Rank = AchievementRank.Platinum,
Image = @"pack://application:,,,/MHFZ_Overlay;component/Assets/Icons/png/rengoku.png",
Objective = "Reach a total of 10,000 road floors completed.",
IsSecret = false,
Hint = string.Empty,
}
},
{
448, new Achievement()
{
CompletionDate = DateTime.UnixEpoch,
Title = "Over the Hills and Far Away",
Description = string.Empty,
Rank = AchievementRank.Gold,
Image = @"pack://application:,,,/MHFZ_Overlay;component/Assets/Icons/png/flame_ul.png",
Objective = "Complete 1 UL Azure Rathalos quest solo (Speedrun/Zen) in Forest and Hills under 5 minutes.",
IsSecret = false,
Hint = string.Empty,
}
}
});
}
22 changes: 22 additions & 0 deletions MHFZ_Overlay/Services/AchievementService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2730,6 +2730,28 @@ join styleRankSkills in databaseManagerInstance.AllStyleRankSkills on quest.RunI
{
return false;
}
case 447:
return dataLoader.Model.RoadTotalStagesMultiplayer() >= 10_000;
case 448: // TODO test
var foundQuest = from quest in databaseManagerInstance.AllQuests
where (quest.PartySize == 1 &&
quest.QuestID == 0 &&
(quest.ActualOverlayMode == "Zen" || quest.ActualOverlayMode == "Time Attack" || quest.ActualOverlayMode == "Freestyle No Secret Tech" || quest.ActualOverlayMode == "Freestyle w/ Secret Tech") && quest.FinalTimeValue <= Numbers.Frames1Minute * 5)
select quest;

if (foundQuest.Count() == 0)
{
return false;
}

if (databaseManagerInstance.AllQuestsToggleMode.Any(q => q.RunID == foundQuest.First().RunID && q.QuestToggleMode == 3))
{
return true;
}
else
{
return false;
}
}
}

Expand Down

0 comments on commit f0ddef3

Please sign in to comment.