public static GameObject RemoveBossIntros(GameObject bossobject)
        {   //removes boss generic and specific boss intros
            GenericIntroDoer     genericIntroDoer = bossobject.GetComponent <GenericIntroDoer>();
            CustomEngageDoer     customengage     = bossobject.GetComponent <CustomEngageDoer>();
            GatlingGullIntroDoer ggintro          = bossobject.GetComponent <GatlingGullIntroDoer>();

            if (genericIntroDoer)
            {
                SpecificIntroDoer specificintrodoer = bossobject.GetComponent <SpecificIntroDoer>();
                //MetalGearRatDeathController deathcontroller2 = bossobject.GetComponent<MetalGearRatDeathController>();


                if (specificintrodoer)
                {
                    Destroy(specificintrodoer);
                    specificintrodoer.RegenerateCache();
                }

                genericIntroDoer.InvisibleBeforeIntroAnim = false;
                Destroy(genericIntroDoer);
                genericIntroDoer.RegenerateCache();
                Destroy(customengage);
            }

            if (ggintro) //gatling gull
            {
                Destroy(ggintro);
            }

            return(bossobject);
        }
예제 #2
0
        public static void BattleStarted(System.Action <GatlingGullIntroDoer, PlayerController> orig,
                                         GatlingGullIntroDoer self, PlayerController player)
        {
            orig(self, player);

            Module.Controller.BattleStarted(self.healthHaver);
        }