Esempio n. 1
0
        ////////////////

        private void CleanupNextBatchOfHiddenDusts()
        {
            int dustsGone = UPMod.Instance.Config.DustRemoveRatePerSixthOfASecond;

            UPProjectile.RemoveDustsNearHiddenProjectiles(this.DustRangeCheckIdx, dustsGone);

            this.DustRangeCheckIdx += dustsGone;
            if (this.DustRangeCheckIdx >= Main.dust.Length)
            {
                this.DustRangeCheckIdx = 0;
            }
        }
Esempio n. 2
0
        ////////////////

        public override bool PreAI(Projectile projectile)
        {
            if (Main.netMode == 2)
            {
                return(base.PreAI(projectile));
            }
            if (!UPProjectile.IsSpamProjectile(projectile))
            {
                return(base.PreAI(projectile));
            }

            if (++this.Timer > 5)
            {
                this.Timer = 0;

                this.UpdateHideState(projectile);
            }

            this.UpdateHideAmount();

            return(base.PreAI(projectile));
        }