Example #1
0
        protected override void UnloadBehavior()
        {
            On.RoR2.CharacterBody.OnInventoryChanged           -= On_CBOnInventoryChanged;
            On.RoR2.CharacterMaster.GetDeployableSameSlotLimit -= On_CMGetDeployableSameSlotLimit;

            foreach (var cm in AliveList())
            {
                if (!cm.hasBody)
                {
                    continue;
                }
                HandleScepterSkill(cm.GetBody(), true);
            }

            ArtificerFlamethrower2.UnloadBehavior();
            ArtificerFlyUp2.UnloadBehavior();
            CommandoBarrage2.UnloadBehavior();
            CommandoGrenade2.UnloadBehavior();
            CrocoDisease2.UnloadBehavior();
            HuntressBallista2.UnloadBehavior();
            HuntressRain2.UnloadBehavior();
            LoaderChargeFist2.UnloadBehavior();
            LoaderChargeZapFist2.UnloadBehavior();
            MercEvis2.UnloadBehavior();
            MercEvisProjectile2.UnloadBehavior();
            ToolbotDash2.UnloadBehavior();
            TreebotFlower2_2.UnloadBehavior();
        }