1 - Reduced Old Duke Sharkron velocity.
2 - Reduced Old Duke Tooth Ball and split teeth velocity.
This commit is contained in:
1 parent
9df14cc8f3
commit
53bbf03de1
2 files changed
+5
-5
No files matched your search
@@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
aiGateValue -= extraTime * 0.3f;
|
||||
float explodeIntoGoreGateValue = aiGateValue + extraTime;
|
||||
float fallDownGateValue = aiGateValue + extraTime * 0.5f;
|
||||
float maxVelocity = malice ? 25f : death ? 22f : revenge ? 21f : expertMode ? 20f : 18f;
|
||||
float maxVelocity = malice ? 24f : death ? 22f : revenge ? 21f : expertMode ? 20f : 18f;
|
||||
|
||||
if (npc.ai[0] == 0f)
|
||||
{
|
||||
@@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
Vector2 vector17 = Main.player[npc.target].Center - npc.Center;
|
||||
vector17.Normalize();
|
||||
vector17 *= scaleFactor2;
|
||||
float inertia = malice ? 15f : death ? 18f : revenge ? 20f : expertMode ? 22f : 25f;
|
||||
float inertia = malice ? 16f : death ? 18f : revenge ? 20f : expertMode ? 22f : 25f;
|
||||
npc.velocity = (npc.velocity * (inertia - 1f) + vector17) / inertia;
|
||||
npc.velocity.Normalize();
|
||||
npc.velocity *= scaleFactor2;
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
float num1372 = death ? 14f : revenge ? 13f : 12f;
|
||||
if (expertMode || malice)
|
||||
{
|
||||
float speedUpMult = BossRushEvent.BossRushActive ? 0.02f : CalamityWorld.malice ? 0.015f : 0.01f;
|
||||
float speedUpMult = BossRushEvent.BossRushActive ? 0.015f : CalamityWorld.malice ? 0.0125f : 0.01f;
|
||||
num1372 += Vector2.Distance(player.Center, npc.Center) * speedUpMult;
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
npc.velocity.Y = (npc.velocity.Y * 7f + num1374) / 8f;
|
||||
}
|
||||
|
||||
float num1247 = CalamityWorld.malice ? 0.75f : 0.5f;
|
||||
float num1247 = CalamityWorld.malice ? 0.65f : 0.5f;
|
||||
for (int num1248 = 0; num1248 < Main.maxNPCs; num1248++)
|
||||
{
|
||||
if (Main.npc[num1248].active)
|
||||
@@ -227,7 +227,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
int damage = Main.expertMode ? 55 : 70;
|
||||
for (int k = 0; k < totalProjectiles; k++)
|
||||
{
|
||||
float velocity = Main.rand.Next(7, 11);
|
||||
float velocity = (CalamityWorld.malice || BossRushEvent.BossRushActive) ? Main.rand.Next(6, 10) : Main.rand.Next(7, 11);
|
||||
Vector2 vector255 = new Vector2(0f, -velocity).RotatedBy(radians * k);
|
||||
int proj = Projectile.NewProjectile(npc.Center, vector255, ModContent.ProjectileType<SandToothOldDuke>(), damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Main.projectile[proj].timeLeft = 360;
|
||||
|
||||
Reference in new issue
Block a user