private int Dust_Capture(On.Terraria.Dust.orig_NewDust orig, Microsoft.Xna.Framework.Vector2 Position, int Width, int Height, int Type, float SpeedX, float SpeedY, int Alpha, Microsoft.Xna.Framework.Color newColor, float Scale) { int idx = orig(Position, Width, Height, Type, SpeedX, SpeedY, Alpha, newColor, Scale); CustomizerProjectile.newDusts.Add(idx); return(idx); }
private int Dust_NewDust(On.Terraria.Dust.orig_NewDust orig, Microsoft.Xna.Framework.Vector2 Position, int Width, int Height, int Type, float SpeedX, float SpeedY, int Alpha, Microsoft.Xna.Framework.Color newColor, float Scale) { if (!TimeStopped) { return(orig.Invoke(Position, Width, Height, Type, SpeedX, SpeedY, Alpha, newColor, Scale)); } return(0); }