コード例 #1
0
        private static IEnumerator Ok(On.HeroController.orig_EnterScene orig, HeroController self, TransitionPoint entergate, float delaybeforeenter)
        {
            // Fix transition state, etc.
            TransitionPoint gate2 = UnityEngine.Object.Instantiate(entergate);

            // Invalid gate name causes it not to put you wherever.
            gate2.name = "no";

            yield return(orig(self, gate2, delaybeforeenter));
        }
コード例 #2
0
        private static IEnumerator DelayForNailCharge(On.HeroController.orig_EnterScene orig, HeroController self, TransitionPoint enterGate, float delayBeforeEnter)
        {
            if (self.playerData.hasNailArt)
            {
                if (self.GetCState("nailCharging") || self.GetCState("attacking"))
                {
                    // 0.565 seconds are vanilla, adding a bit more to make cyclone dropping into Deepnest_01b viable on good pcs
                    delayBeforeEnter += 0.7f;
                }
            }

            yield return(orig(self, enterGate, delayBeforeEnter));
        }