SHPC vacuum stuff
This commit is contained in:
1 parent
ecf556bc79
commit
39f90803cd
2 files changed
+7
-3
No files matched your search
@@ -72,7 +72,11 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
if (p.type == ModContent.ProjectileType<SHPV>() && p.Colliding(p.Hitbox, Projectile.Hitbox))
|
||||
{
|
||||
AIState = 2f;
|
||||
if (AIState != 2f)
|
||||
{
|
||||
AIState = 2f;
|
||||
Projectile.ExpandHitboxBy(70);
|
||||
}
|
||||
ToSuckTowards = p;
|
||||
break;
|
||||
}
|
||||
@@ -112,7 +116,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
// Appearance
|
||||
if (Timer % 1 == 0f)
|
||||
{
|
||||
SquareParticle trail = new(Projectile.Center, Vector2.Zero, false, 25, 3f, SHPB.FindColorForSoul((int)Projectile.ai[0]), Pickup == 1f ? MathHelper.PiOver4 : 0f);
|
||||
SquareParticle trail = new(Projectile.Center, Vector2.Zero, false, 20, 3f, SHPB.FindColorForSoul((int)Projectile.ai[0]), Pickup == 1f ? MathHelper.PiOver4 : 0f);
|
||||
GeneralParticleHandler.SpawnParticle(trail);
|
||||
}
|
||||
SquareParticle mainSpot = new(Projectile.Center, Vector2.Zero, false, 2, 1.4f, Color.White, Pickup == 1f ? MathHelper.PiOver4 : 0f);
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.ELRFireSound, Owner.Center);
|
||||
Vector2 laserPos = TipPosition + Vector2.UnitY.RotatedBy(Projectile.rotation) * Main.rand.NextFloat(-7f, 7f);
|
||||
Vector2 laserVel = Utils.DirectionTo(Owner.Center, Owner.Calamity().mouseWorld) * 20f;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), laserPos, laserVel, ModContent.ProjectileType<SHPL>(), Projectile.damage, 3f, Projectile.owner, SoulColors[0]);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), laserPos, laserVel, ModContent.ProjectileType<SHPL>(), (int)(Projectile.damage * 1.25f), 3f, Projectile.owner, SoulColors[0]);
|
||||
|
||||
if (ConsumeSoul)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user