1 - Reduced Ebonian Paladin rotation and fixed wing scaling.
2 - Fixed Slime God Core eye stuttering while trying to stay inside a Paladin and made the eye change color to the buffed Paladin color.
This commit is contained in:
1 parent
e134375cfd
commit
bf4e213805
2 files changed
+6
-5
No files matched your search
@@ -630,7 +630,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
float stretch = addedStretch;
|
||||
|
||||
float rot = MathHelper.Lerp(0f, MathHelper.WrapAngle(Vector2.Zero.AngleTo(NPC.velocity) + MathHelper.ToRadians(90f)), Math.Clamp(vel / 10f, 0f, 1f));
|
||||
float rot = MathHelper.Lerp(0f, MathHelper.WrapAngle(Vector2.Zero.AngleTo(NPC.velocity) + MathHelper.ToRadians(90f)), Math.Clamp(vel / 30f, 0f, 1f));
|
||||
|
||||
NPC.rotation = MathHelper.Lerp(NPC.rotation, rot, 0.1f);
|
||||
|
||||
@@ -680,8 +680,8 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
Vector2 wingOffset2 = Vector2.Zero;
|
||||
|
||||
// Draw the wings.
|
||||
spriteBatch.Draw(wingTexture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY) + wingOffset1, wingFrame1, drawColorAlpha, 0f, wingOrigin1, 1f, spriteEffects, 0f);
|
||||
spriteBatch.Draw(wingTexture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY) + wingOffset2, wingFrame2, drawColorAlpha, 0f, wingOrigin2, 1f, spriteEffects, 0f);
|
||||
spriteBatch.Draw(wingTexture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY) + wingOffset1, wingFrame1, drawColorAlpha, 0f, wingOrigin1, NPC.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(wingTexture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY) + wingOffset2, wingFrame2, drawColorAlpha, 0f, wingOrigin2, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
// Draw the actual paladin.
|
||||
spriteBatch.Draw(texture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY) + new Vector2(0, 16), NPC.frame, drawColorAlpha, NPC.rotation, NPC.frame.Size() * 0.5f + new Vector2(0, 8), scaleStretch, spriteEffects, 0f);
|
||||
|
||||
@@ -453,9 +453,10 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
NPC.velocity = Vector2.Normalize(goToPosition) * 24f;
|
||||
|
||||
// Reduce velocity to 0 to avoid spastic movement when inside big slime.
|
||||
if (Vector2.Distance(NPC.Center, goToVector) < 24f)
|
||||
if (Vector2.Distance(NPC.Center, goToVector) < 80f)
|
||||
{
|
||||
NPC.velocity = Vector2.Zero;
|
||||
NPC.Center = goToVector + Vector2.UnitY * 80f;
|
||||
|
||||
NPC.Opacity -= 0.2f;
|
||||
if (NPC.Opacity < 0f)
|
||||
@@ -667,7 +668,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
|
||||
SpriteEffects spriteEffects = NPC.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
|
||||
Color drawColorAlpha = NPC.GetAlpha(drawColor);
|
||||
Color drawColorAlpha = buffedSlime != 0f ? new Color(200, 150, Main.DiscoB, NPC.alpha) * NPC.Opacity : NPC.GetAlpha(drawColor);
|
||||
Vector2 origin = NPC.frame.Size() * 0.5f;
|
||||
Vector2 halfSize = NPC.Size * 0.5f;
|
||||
|
||||
|
||||
Reference in new issue
Block a user