r2mods/ilspy_dump/ror2_csproj/RoR2.Achievements/CompleteMainEndingHardAchie...

15 lines
425 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
namespace RoR2.Achievements;
[RegisterAchievement("CompleteMainEndingHard", "Items.LunarBadLuck", null, 10u, null)]
public class CompleteMainEndingHardAchievement : BaseEndingAchievement
{
protected override bool ShouldGrant(RunReport runReport)
{
if (runReport.gameEnding == RoR2Content.GameEndings.MainEnding && runReport.ruleBook.FindDifficulty() >= DifficultyIndex.Hard)
{
return true;
}
return false;
}
}