From 03595a364ed6a1dad893465477eb01cd8053c0a7 Mon Sep 17 00:00:00 2001 From: Heart-Plus-Up <85328817+Heart-Plus-Up@users.noreply.github.com> Date: Tue, 31 Jan 2023 05:50:52 -0700 Subject: [PATCH] Perennial Final Changes (I hope) If anything is not the best feel free to optimize --- Tiles/Ores/PerennialOre.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tiles/Ores/PerennialOre.cs b/Tiles/Ores/PerennialOre.cs index 886dd34dd1..6b5373c6fd 100644 --- a/Tiles/Ores/PerennialOre.cs +++ b/Tiles/Ores/PerennialOre.cs @@ -147,8 +147,10 @@ namespace CalamityMod.Tiles.Ores { if (pos == positionFlower) { + float pseudoRandom = MathF.Abs(MathF.Sin((positionFlower.X * 1294.2943f) + (positionFlower.Y * 96.454f))) % 1; float brightness = 0.7f; - brightness *= MathF.Sin(Main.GameUpdateCount * 0.02f); + brightness *= (float)MathF.Sin(j / 14f + Main.GameUpdateCount * 0.017f); + brightness *= (float)MathF.Sin(i / 14f + Main.GameUpdateCount * 0.017f); brightness += 0.3f; r = 0.83f; g = 0.16f;