Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
c7278546bc
6 files changed
+15
-8
No files matched your search
@@ -788,7 +788,7 @@ namespace CalamityMod.NPCs.ExoMechs
|
||||
if (NPC.life > 0)
|
||||
return;
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (Main.netMode != NetmodeID.Server && !HasBeenKilled)
|
||||
{
|
||||
for (int i = 1; i <= 4; i++)
|
||||
{
|
||||
|
||||
@@ -149,6 +149,12 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
modPlayer.GlacialEmbrace = false;
|
||||
}
|
||||
|
||||
if (!modPlayer.GlacialEmbrace)
|
||||
{
|
||||
Projectile.active = false;
|
||||
return;
|
||||
}
|
||||
if (circlingPlayer)
|
||||
{
|
||||
Projectile.minionSlots = 1f;
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
playerDestination.Y += Main.rand.NextFloat(-10f, 20f) - 60f;
|
||||
float playerDist = playerDestination.Length();
|
||||
float acceleration = 0.5f;
|
||||
float returnSpeed = 18f;
|
||||
float returnSpeed = 28f;
|
||||
|
||||
// Teleport if too far
|
||||
if (playerDist > 2000f)
|
||||
@@ -180,6 +180,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
if (acceleration > 0.05f && Projectile.velocity.Y > 0f)
|
||||
Projectile.velocity.Y -= acceleration * 2f;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
float playerDist = playerDestination.Length();
|
||||
float acceleration = 0.5f;
|
||||
float returnSpeed = 18f;
|
||||
float returnSpeed = 28f;
|
||||
|
||||
// Teleport if too far
|
||||
if (playerDist > 2000f)
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
float playerDist = playerDestination.Length();
|
||||
float acceleration = 0.5f;
|
||||
float returnSpeed = 18f;
|
||||
float returnSpeed = 28f;
|
||||
|
||||
// Teleport if too far
|
||||
if (playerDist > 2000f)
|
||||
@@ -304,7 +304,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
Projectile.velocity *= dist > 10 ? 0.9f : 0.3f;
|
||||
}
|
||||
|
||||
if (Projectile.ai[2] <= 120f)
|
||||
if (Projectile.ai[2] <= 120f && owner.HasBuff<ProfanedCrystalWhipBuff>())
|
||||
{
|
||||
int dustCount = (int)Math.Round(MathHelper.SmoothStep(1f, 5f, Projectile.ai[2] / 120));
|
||||
float outwardness = MathHelper.SmoothStep(40f, 60f, Projectile.ai[2] / 120);
|
||||
|
||||
@@ -222,8 +222,8 @@ namespace CalamityMod.UI
|
||||
barRectangle.Height = (int)(correctHeight * flightRatio);
|
||||
Vector2 origin = correctBorder.Size() * 0.5f;
|
||||
origin.Y += 0.1f;
|
||||
Vector2 drawPos = screenPos - new Vector2(offset * uiScale, 14);
|
||||
spriteBatch.Draw(barTexture, drawPos, barRectangle, Color.White, MathHelper.ToRadians(180), origin, uiScale * 1.06f, SpriteEffects.None, 0);
|
||||
Vector2 drawPos = screenPos - new Vector2(offset * uiScale, 12 * uiScale);
|
||||
spriteBatch.Draw(barTexture, drawPos, barRectangle, Color.White, MathHelper.ToRadians(180), origin, uiScale, SpriteEffects.None, 0);
|
||||
}
|
||||
if (!completedAnimation && FlightAnimFrame >= 0)
|
||||
{
|
||||
@@ -234,7 +234,7 @@ namespace CalamityMod.UI
|
||||
float yOffset = FlightAnimFrame == 0 ? 0 : ((correctBorder.Height / FlightAnimFrame) - frameHeight) / 2f ;
|
||||
Vector2 sizeDiffOffset = new Vector2(xOffset, yOffset);
|
||||
Rectangle animCropRect = new Rectangle(0, (frameHeight + 1) * FlightAnimFrame, flightBarAnimTexture.Width, frameHeight);
|
||||
spriteBatch.Draw(flightBarAnimTexture, screenPos + sizeDiffOffset, animCropRect, Color.White, 0f, origin, uiScale, SpriteEffects.None, 0);
|
||||
spriteBatch.Draw(flightBarAnimTexture, screenPos + sizeDiffOffset, animCropRect, Color.White, 0f, origin * Main.UIScale, uiScale, SpriteEffects.None, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user