r2mods/ilspy_dump/ror2_csproj/RoR2.Achievements.Croco/CrocoTotalInfectionsMilesto...

23 lines
800 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using Assets.RoR2.Scripts.Platform;
using RoR2.Stats;
namespace RoR2.Achievements.Croco;
[RegisterAchievement("CrocoTotalInfectionsMilestone", "Skills.Croco.ChainableLeap", "BeatArena", 3u, null)]
public class CrocoTotalInfectionsMilestoneAchievement : BaseStatMilestoneAchievement
{
protected override StatDef statDef => StatDef.totalCrocoInfectionsInflicted;
protected override ulong statRequirement => 1000uL;
public override void TryToCompleteActivity()
{
if (base.localUser.id == LocalUserManager.GetFirstLocalUser().id && shouldGrant)
{
BaseActivitySelector baseActivitySelector = new BaseActivitySelector();
baseActivitySelector.activityAchievementID = "CrocoTotalInfectionsMilestone";
PlatformSystems.activityManager.TryToCompleteActivity(baseActivitySelector);
}
}
}