From aced0ae08a8a2d054cffa42122444c5f5ee1fc8e Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 23 Sep 2023 13:12:54 -0400 Subject: [PATCH] Adrenaline emits light directly to prevent potential lag --- CalPlayer/CalamityPlayerDrawEffects.cs | 6 +++++- Dusts/AdrenDust.cs | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 6e91ad3986..d4453d1304 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -345,9 +345,13 @@ namespace CalamityMod.CalPlayer } } - // Dust while Adrenaline Mode is active + // Light and dust while Adrenaline Mode is active if (calamityPlayer.adrenalineModeActive) { + // 23SEP2023: Ozzatron: Adrenaline emits light directly. Color lifted from AdrenDust + Vector3 adrenDustLight = new Vector3(0.255f, 0.185f, 0.094f); + Lighting.AddLight(Player.Center, adrenDustLight * 2); + for (int i = 0; i < 4; i++) { int dustID = ModContent.DustType(); diff --git a/Dusts/AdrenDust.cs b/Dusts/AdrenDust.cs index 7e2387418a..868411b129 100644 --- a/Dusts/AdrenDust.cs +++ b/Dusts/AdrenDust.cs @@ -20,7 +20,8 @@ namespace CalamityMod.Dusts dust.position += dust.velocity; dust.scale *= 0.94f; dust.velocity *= 0.90f; - Lighting.AddLight(dust.position, 0.255f, 0.185f, 0.094f); + // 23SEP2023: Ozzatron: Adrenaline emits light directly; there is a LOT of shortlived dust + // Lighting.AddLight(dust.position, 0.255f, 0.185f, 0.094f); if (dust.scale < 0.4f) { dust.active = false;