Adrenaline emits light directly to prevent potential lag

This commit is contained in:
Ozzatron committed 2023-09-24 01:30:36 -04:00
1 parent c96167172d
commit aced0ae08a
2 files changed
+7 -2

No files matched your search

+5 -1
View File
@@ -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<AdrenDust>();
+2 -1
View File
@@ -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;