private static bool CanQuickMap(On.HeroController.orig_CanQuickMap orig, HeroController self)
 {
     return(Storage
         ? !GameManager.instance.isPaused &&
            !self.cState.onConveyor &&
            !self.cState.dashing &&
            !self.cState.backDashing &&
            (!self.cState.attacking || ReflectionHelper.GetAttr <HeroController, float>(self, "attack_time") >= self.ATTACK_RECOVERY_TIME) &&
            !self.cState.recoiling &&
            !self.cState.hazardDeath &&
            !self.cState.hazardRespawning
         : orig(self));
 }
Example #2
0
        private static bool CanQuickMap(On.HeroController.orig_CanQuickMap orig, HeroController self)
        {
            HeroControllerStates cs = self.cState;

            return(Storage
                ? !GameManager.instance.isPaused &&
                   !cs.onConveyor &&
                   !cs.dashing &&
                   !cs.backDashing &&
                   (!cs.attacking || Mirror.GetField <HeroController, float>(self, "attack_time") >= self.ATTACK_RECOVERY_TIME) &&
                   !cs.recoiling &&
                   !cs.hazardDeath &&
                   !cs.hazardRespawning
                : orig(self));
        }