1 - Reduced some worm velocity multipliers to hopefully fix them going at light speed while far away and switching phases.
This commit is contained in:
1 parent
23a2851d10
commit
c373f3bc54
4 files changed
+16
-12
No files matched your search
+2
-2
@@ -3582,8 +3582,8 @@ namespace CalamityMod.NPCs
|
||||
fallSpeed *= revMultiplier;
|
||||
}
|
||||
|
||||
speed *= increaseSpeedMore ? 4f : increaseSpeed ? 2f : 1f;
|
||||
turnSpeed *= increaseSpeedMore ? 4f : increaseSpeed ? 2f : 1f;
|
||||
speed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f;
|
||||
turnSpeed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f;
|
||||
|
||||
Vector2 vector3 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num20 = player.position.X + (player.width / 2);
|
||||
|
||||
@@ -1089,10 +1089,10 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
SpawnTeleportLocation(player);
|
||||
}
|
||||
else
|
||||
groundPhaseTurnSpeed *= 4f;
|
||||
groundPhaseTurnSpeed *= 2f;
|
||||
}
|
||||
else if (increaseSpeed)
|
||||
groundPhaseTurnSpeed *= 2f;
|
||||
groundPhaseTurnSpeed *= 1.5f;
|
||||
|
||||
if (!flies)
|
||||
{
|
||||
@@ -1744,9 +1744,9 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
|
||||
// Enrage
|
||||
if (increaseSpeedMore)
|
||||
groundPhaseTurnSpeed *= 4f;
|
||||
else if (increaseSpeed)
|
||||
groundPhaseTurnSpeed *= 2f;
|
||||
else if (increaseSpeed)
|
||||
groundPhaseTurnSpeed *= 1.5f;
|
||||
|
||||
if (!flies)
|
||||
{
|
||||
|
||||
@@ -156,9 +156,9 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
float num189 = CalamityWorld.malice ? 0.17f : CalamityWorld.revenge ? 0.15f : 0.13f;
|
||||
|
||||
if (increaseSpeedMore)
|
||||
num189 *= 6f;
|
||||
else if (increaseSpeed)
|
||||
num189 *= 3f;
|
||||
else if (increaseSpeed)
|
||||
num189 *= 2f;
|
||||
|
||||
for (int num52 = 0; num52 < Main.maxNPCs; num52++)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -215,6 +215,10 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
// Fire lasers
|
||||
if (npc.type == NPCID.TheDestroyerBody)
|
||||
{
|
||||
// Set to a high number from the start so that the lasers are more staggered
|
||||
if (calamityGlobalNPC.newAI[0] < 5400f)
|
||||
calamityGlobalNPC.newAI[0] = 5400f;
|
||||
|
||||
// Laser rate of fire
|
||||
calamityGlobalNPC.newAI[0] += 1f;
|
||||
float shootProjectile = death ? 300 : 600;
|
||||
@@ -227,7 +231,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height))
|
||||
{
|
||||
// Laser speed
|
||||
float projectileSpeed = 4.5f;
|
||||
float projectileSpeed = 4f + Main.rand.NextFloat();
|
||||
projectileSpeed += enrageScale;
|
||||
|
||||
// Set projectile damage and type, set projectile to saucer scrap if probe has been launched
|
||||
@@ -389,8 +393,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
speed *= speedMultiplier;
|
||||
}
|
||||
|
||||
speed *= increaseSpeedMore ? 4f : increaseSpeed ? 2f : 1f;
|
||||
turnSpeed *= increaseSpeedMore ? 4f : increaseSpeed ? 2f : 1f;
|
||||
speed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f;
|
||||
turnSpeed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f;
|
||||
|
||||
Vector2 vector3 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num20 = player.position.X + (player.width / 2);
|
||||
|
||||
Reference in new issue
Block a user