Apollo charge telegraph fix

+ Changed Artemis' trail points to the bare minimum required (5)
This commit is contained in:
Altixal committed 2024-06-06 14:12:59 +07:00
1 parent b6d71a4896
commit ad9fed147a
2 files changed
+5 -6

No files matched your search

+4 -5
View File
@@ -118,11 +118,10 @@ namespace CalamityMod.Projectiles.Boss
for (int i = ChargePositions.Length - 2; i >= 0; i--)
{
Vector2[] positions = new Vector2[2]
{
ChargePositions[i],
ChargePositions[i + 1]
};
// This is effectively a 2-point trail that is extended as Toasty's new Primitive system appears to no longer support them.
Vector2[] positions = new Vector2[5];
for (int p = 0; p < positions.Length; p++)
positions[p] = Vector2.Lerp(ChargePositions[i], ChargePositions[i + 1], p / (positions.Length - 1f));
// Stand-in variable used to differentiate between the beams.
// It is not used anywhere else.
+1 -1
View File
@@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Boss
GameShaders.Misc["CalamityMod:Flame"].UseImage1("Images/Misc/Perlin");
GameShaders.Misc["CalamityMod:Flame"].UseSaturation(0.28f);
// This is effectively a 2-point trail that is extended as Toasty's new Primitive system appears to no longer support them.
Vector2[] drawPositions = new Vector2[6];
Vector2[] drawPositions = new Vector2[5];
for (int i = 0; i < drawPositions.Length; i++)
drawPositions[i] = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.UnitY) * TelegraphWidth * i / (drawPositions.Length - 1f);