//private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions) //{ // var codes = new List<CodeInstruction>(instructions); // codes.RemoveRange(0, codes.Count - 1); // return codes.AsEnumerable(); //} private static void Postfix(TournamentGame __instance, ref ItemObject __result) { //__result currently has stock item. try { __result = TournamentPrizePoolBehavior.GenerateTournamentPrize(__instance, null, false); } catch (Exception ex) { ErrorLog.Log("ERROR: Tournament Prize System: GetTournamentPrize"); ErrorLog.Log(ex.ToStringFull()); } }