Ejemplo n.º 1
0
        private void Projectile_Update(On.Terraria.Projectile.orig_Update orig, Projectile self, int i)
        {
            bool ownerStoppedTime = TBAR.TimeStopManager.HaveITimeStopped(Main.player[self.owner]);

            if (!TimeStopped || ownerStoppedTime || TBAR.TimeStopManager.IsMyTeamImmune(Main.player[self.owner]))
            {
                orig.Invoke(self, i);
            }
        }
Ejemplo n.º 2
0
        private void Proj_Update(On.Terraria.Projectile.orig_Update orig, Projectile self, int i)
        {
            CustomizerProjectile.newDusts = new List <int>();

            orig(self, i);

            if (self.active)
            {
                CustomizerProjInfo info = self.GetGlobalProjectile <CustomizerProjInfo>();

                if (info.shaderID > 0)
                {
                    foreach (int dust in CustomizerProjectile.newDusts)
                    {
                        Main.dust[dust].shader = GameShaders.Armor.GetSecondaryShader(info.shaderID, Main.player[self.owner]);
                    }
                }
            }
            CustomizerProjectile.newDusts = new List <int>();
        }