Dynamo Stem Cells update

Mini Swarmers how use their own velocity and fire at the the cursor, rather than the velocity of the projectile that spawned it
This commit is contained in:
sunny-raindrops committed 2025-06-15 00:29:21 -07:00
1 parent 4a13128409
commit 82d24b4e54
1 file changed
+3 -2
+3 -2
View File
@@ -838,8 +838,9 @@ namespace CalamityMod.CalPlayer
if (dynamoStemCells && MiniSwarmerCooldown <= 0 && proj.CountsAsClass<RangedDamageClass>())
{
MiniSwarmerCooldown = DynamoStemCells.MiniSwarmerCooldown;
Vector2 velocity = proj.velocity.SafeNormalize(Vector2.UnitY) * 19;
Vector2 directionToMouse = Main.MouseWorld - Player.Center;
directionToMouse.Normalize();
Vector2 velocity = directionToMouse * 19;
int MiniSwamerDamage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(DynamoStemCells.MiniSwamerDamage);
Projectile.NewProjectile(source, Player.Center, velocity, ProjectileType<MiniatureFolly>(), MiniSwamerDamage, 2f, proj.owner);
}