private static void SeedHook(On.RoR2.PreGameController.orig_Awake orig, PreGameController self) { orig(self); if (RoR2Cheats.seed != 0) { self.runSeed = RoR2Cheats.seed; } }
internal static void SeedHook(On.RoR2.PreGameController.orig_Awake orig, PreGameController self) { orig(self); if (DebugToolkit.seed != 0) { self.runSeed = DebugToolkit.seed; } }
private static void _hookAwake_PreGameController(On.RoR2.PreGameController.orig_Awake orig, PreGameController self) { orig(self); // Late hooking, make sure to not hook twice. On.RoR2.RuleBook.ApplyChoice -= _hookApplyChoice_RuleBook; On.RoR2.RuleBook.ApplyChoice += _hookApplyChoice_RuleBook; }
internal static void SeedHook(On.RoR2.PreGameController.orig_Awake orig, PreGameController self) { orig(self); if (CurrentRun.seed != 0) { self.runSeed = CurrentRun.seed; } }