Пример #1
0
 private static bool Player_WallJumpCheck(On.Celeste.Player.orig_WallJumpCheck orig, Player self, int dir)
 {
     if (self.Get <abcdhr>() == null)
     {
         return(orig(self, dir));
     }
     return(false);
 }
Пример #2
0
 /// <summary>
 /// Mods the WallJumpCheck method, checking if a walljump is possible.
 /// </summary>
 /// <param name="orig"></param>
 /// <param name="self">the player</param>
 /// <param name="dir">the direction</param>
 /// <returns>true if walljumping is possible, false otherwise</returns>
 private bool modWallJumpCheck(On.Celeste.Player.orig_WallJumpCheck orig, Player self, int dir)
 {
     if (Settings.DisableWallJumping)
     {
         return(false);
     }
     return(orig(self, dir));
 }