Exemplo n.º 1
0
 public static void patch(SaveManager __instance)
 {
     if (__instance.HasMainClass() && __instance.GetRunType() == RunType.Custom)
     {
         SaveData sData = ((SaveData)(AccessTools.Property(typeof(SaveManager), "ActiveSaveData")).GetValue(__instance));
         __instance.AddXPToClass(sData.GetMainClassID(), __instance.GetScore(), true);
         __instance.AddXPToClass(sData.GetSubClassID(), __instance.GetScore(), false);
         __instance.UpdateLifetimeRunStats();
         __instance.SaveMetagame("metagameSave", "metagameSaveBackup");
     }
 }