Brim Barrage Proj fixes + Crack Particle high def

This commit is contained in:
Xyk committed 2024-04-11 02:45:02 -07:00
1 parent 7e762123e1
commit fe06e4fc4b
7 files changed
+20 -17

No files matched your search

+1 -1
View File
@@ -345,7 +345,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
for (int k = 0; k < totalProjectiles; k++)
{
Vector2 projectileVelocity = spinningPoint.RotatedBy(radians * k);
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, projectileVelocity, type, damage, 0f, Main.myPlayer, 0f, 2f, projectileVelocityToPass);
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, projectileVelocity, type, damage, 0f, Main.myPlayer, 0f, 3f, projectileVelocityToPass);
}
NPC.netUpdate = true;
}
+1 -1
View File
@@ -180,7 +180,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
}
else
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, shootVelocity * 0.5f, type, damage, 1f, Main.myPlayer, 0f, 2f, projectileVelocityToPass);
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, shootVelocity * 0.5f, type, damage, 1f, Main.myPlayer, 0f, 3f, projectileVelocityToPass);
for (int i = 0; i < 5; i++)
{
Dust ShotDust = Dust.NewDustPerfect(NPC.Center, Main.rand.NextBool(3) ? 60 : 114);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 36 KiB

+1 -1
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.Particles
public override void CustomDraw(SpriteBatch spriteBatch)
{
Texture2D tex = ModContent.Request<Texture2D>(Texture).Value;
spriteBatch.Draw(tex, Position - Main.screenPosition, null, Color * opacity, Rotation, tex.Size() / 2f, Scale * Squish, SpriteEffects.None, 0);
spriteBatch.Draw(tex, Position - Main.screenPosition, null, Color * opacity, Rotation, tex.Size() / 2f, (Scale * Squish) / 3, SpriteEffects.None, 0);
}
}
+15 -12
View File
@@ -96,25 +96,28 @@ namespace CalamityMod.Projectiles.Boss
}
}
// This only runs for SCal, SCal brothers, SCal seekers, and Sepulcher projectiles.
// This only runs for SCal projectiles.
if (Projectile.ai[1] == 2f)
{
if (Projectile.timeLeft > 600)
Projectile.velocity *= 1.015f;
Projectile.scale = 0.8f;
Dust trailDust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(4, 4), 182);
trailDust.noGravity = true;
trailDust.velocity = (-Projectile.velocity * 0.5f) * Main.rand.NextFloat(0.1f, 0.9f);
trailDust.scale = Main.rand.NextFloat(0.2f, 0.6f);
if (targetDist < 1400f)
{
SparkParticle orb = new SparkParticle(Projectile.Center - Projectile.velocity * 0.5f, -Projectile.velocity * Main.rand.NextFloat(0.1f, 0.6f), false, (int)MathHelper.Clamp(9 * Utils.GetLerpValue(630, 690, Projectile.timeLeft), 2, 9), 1.1f, (Main.rand.NextBool() ? Color.Red : Color.Lerp(Color.Red, Color.Magenta, 0.5f)) * Projectile.Opacity * 0.85f);
GeneralParticleHandler.SpawnParticle(orb);
}
}
// This only runs for SCal seekers and Sepulcher projectiles.
if (Projectile.ai[1] == 3f)
{
if (Projectile.timeLeft > 600)
Projectile.velocity *= 1.015f;
Projectile.scale = 0.85f;
Dust trailDust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(4, 4), 182);
trailDust.noGravity = true;
trailDust.velocity = (-Projectile.velocity * 0.5f) * Main.rand.NextFloat(0.1f, 0.9f);
trailDust.scale = Main.rand.NextFloat(0.2f, 0.6f);
}
if (Projectile.localAI[0] == 0f)
{
@@ -156,6 +159,6 @@ namespace CalamityMod.Projectiles.Boss
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1);
return false;
}
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 18, targetHitbox);
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 18 * Projectile.scale, targetHitbox);
}
}
+1 -1
View File
@@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Boss
else
targetDist = 1000;
if (!withinRange && Main.rand.NextBool())
if (Projectile.ai[1] == 2f && !withinRange && Main.rand.NextBool())
{
SparkParticle orb = new SparkParticle(Projectile.Center - Projectile.velocity + Main.rand.NextVector2Circular(20, 20), -Projectile.velocity * Main.rand.NextFloat(0.1f, 1f), false, 14, Main.rand.NextFloat(0.35f, 0.6f), (Main.rand.NextBool() ? Color.Lerp(Color.Red, Color.Magenta, 0.5f) : Color.Red) * Projectile.Opacity);
GeneralParticleHandler.SpawnParticle(orb);
+1 -1
View File
@@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Boss
else
targetDist = 1000;
if (!withinRange && Main.rand.NextBool())
if (Projectile.ai[1] == 2f && !withinRange && Main.rand.NextBool())
{
SparkParticle orb = new SparkParticle(Projectile.Center - Projectile.velocity + Main.rand.NextVector2Circular(30, 30), -Projectile.velocity * Main.rand.NextFloat(0.1f, 1f), false, 14, Main.rand.NextFloat(0.5f, 0.75f), (Main.rand.NextBool() ? Color.Lerp(Color.Red, Color.Magenta, 0.5f) : Color.Red) * Projectile.Opacity);
GeneralParticleHandler.SpawnParticle(orb);