Death Mode scaling.

This commit is contained in:
mountaindrew10 committed 2023-07-18 00:32:38 -05:00
1 parent 12a5465d2c
commit e42cca80e7
1 file changed
+2 -1
@@ -608,7 +608,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
if (phase2)
{
int spore = NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.Spore, npc.whoAmI);
Vector2 sporeVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center) * 6f;
float sporeSpeed = death ? 9f : 6f;
Vector2 sporeVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center) * sporeSpeed;
Main.npc[spore].velocity.X = sporeVelocity.X;
Main.npc[spore].velocity.Y = sporeVelocity.Y;
Main.npc[spore].netUpdate = true;