// Decompiled with JetBrains decompiler
// Type: Patch_AwardAchievementToPlayer
// Assembly: SKAct3Mod, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: EF4785F8-3D58-41A2-AB15-79DC0EFFC921
// Assembly location: C:\Users\Ario\Downloads\SKFUnlockAllAchivementsMod-506-1-0-0-1759429306\SKFUnlockAllAchivementsMod.dll
// Metadata token values are shown
using HarmonyLib;
using System;
using System.Reflection;
#nullable disable
// Type Patch_AwardAchievementToPlayer with token 02000003
[/Attribute with token 0C000010/HarmonyPatch(typeof (AchievementHandler), "AwardAchievementToPlayer")]
internal class Patch_AwardAchievementToPlayer
{
// Method Prefix with token 06000005
private static bool Prefix(/Parameter with token 08000001/AchievementHandler __instance, /Parameter with token 08000002/string key)
{
Platform.Current.PushAchievementUnlock(key);
(typeof (AchievementHandler).GetField("AwardAchievementEvent", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue((object) __instance) as Delegate)?.DynamicInvoke((object) key);
return false;
}
}