Esempio n. 1
0
 private static bool CanOpenInventory(On.HeroController.orig_CanOpenInventory orig, HeroController self)
 {
     return(MenuDrop
         ? !GameManager.instance.isPaused &&
            !self.controlReqlinquished &&
            !self.cState.recoiling &&
            !self.cState.transitioning &&
            !self.cState.hazardDeath &&
            !self.cState.hazardRespawning &&
            !self.playerData.disablePause &&
            self.CanInput() ||
            self.playerData.atBench
         : orig(self));
 }