private static bool OverrideCanFocus(On.HeroController.orig_CanFocus orig, HeroController self)
 {
     if (currentSettings.startWithoutFocus && !ItemChanger.instance.Settings.canFocus)
     {
         return(false);
     }
     return(orig(self));
 }
示例#2
0
        private bool HeroController_CanFocus(On.HeroController.orig_CanFocus orig, HeroController self)
        {
            return(false);

            if (adrenalineCharges < 1)
            {
                return(false);                       //If your soul charges are less than 1, you cant heal bud
            }
            return(orig(self));
        }
示例#3
0
 private static bool DisableFocus(On.HeroController.orig_CanFocus orig, HeroController self)
 {
     if (RandomizerMod.Instance.Settings.RandomizeFocus && !RandomizerMod.Instance.Settings.GetBool(name: "canFocus"))
     {
         return(false);
     }
     else
     {
         return(orig(self));
     }
 }