public override void Update(GameTime gameTime) { Bootlegdust.ForEach(BootlegDust => BootlegDust.Update()); Bootlegdust.RemoveAll(BootlegDust => BootlegDust.time <= 0); if (Main.expertMode && visible) { BootlegDust dus = new ExpertDust(ModContent.GetTexture("StarlightRiver/GUI/Fire"), new Vector2(78, 318) + new Vector2(Main.rand.Next(0, 16), Main.rand.Next(0, 16)), new Vector2(0, -1), new Color(255, 255, 100), 2f, 60); Bootlegdust.Add(dus); } }
public override void Draw(SpriteBatch spriteBatch) { base.Draw(spriteBatch); Bootlegdust.ForEach(BootlegDust => BootlegDust.Draw(spriteBatch)); Recalculate(); }