baby plaguebringer "reanimation"

also the minion version now flips
This commit is contained in:
GinYuH committed 2023-07-20 19:05:01 -07:00
1 parent 25f2d928fc
commit 87eb733494
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Pets
public new string LocalizationCategory => "Projectiles.Pets";
public override void SetStaticDefaults()
{
Main.projFrames[Projectile.type] = 4;
Main.projFrames[Projectile.type] = 6;
Main.projPet[Projectile.type] = true;
}
@@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Pets
}
if (Projectile.frame >= 4)
{
Projectile.frame = 2;
Projectile.frame = 0;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

+5 -5
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Summon
public override void SetStaticDefaults()
{
Main.projFrames[Projectile.type] = 4;
Main.projFrames[Projectile.type] = 6;
ProjectileID.Sets.MinionShot[Projectile.type] = true;
}
@@ -66,9 +66,9 @@ namespace CalamityMod.Projectiles.Summon
Projectile.frame++;
Projectile.frameCounter = 0;
}
if (Projectile.frame > 2)
if (Projectile.frame > 5 || Projectile.frame < 4)
{
Projectile.frame = 0;
Projectile.frame = 4;
}
if (Projectile.ai[1] > 30f)
{
@@ -198,7 +198,7 @@ namespace CalamityMod.Projectiles.Summon
}
if (Projectile.frame >= 4)
{
Projectile.frame = 2;
Projectile.frame = 0;
}
if (Projectile.ai[1] > 0f)
{
@@ -238,7 +238,7 @@ namespace CalamityMod.Projectiles.Summon
int num214 = texture.Height / Main.projFrames[Projectile.type];
int y6 = num214 * Projectile.frame;
Vector2 origin = new Vector2(texture.Width / 2f, num214 / 2f);
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Rectangle(0, y6, texture.Width, num214), Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0);
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Rectangle(0, y6, texture.Width, num214), Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, spriteEffects, 0);
return false;
}