added a glowmask to seeking scorcher

This commit is contained in:
termigator1359 committed 2020-01-14 20:47:51 -05:00
1 parent 3c69c5bcec
commit 87cdba5fe9
1 file changed
+10
@@ -153,6 +153,16 @@ namespace CalamityMod.Projectiles.Melee
return false;
}
public override void PostDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D texture = Main.projectileTexture[projectile.type];
SpriteEffects spriteEffects = SpriteEffects.None;
if (projectile.spriteDirection == -1)
spriteEffects = SpriteEffects.FlipHorizontally;
spriteBatch.Draw(texture, projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, texture.Width, texture.Height)), Color.White, projectile.rotation, texture.Size() / 2f, projectile.scale, spriteEffects, 0f);
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
//inflict Holy Flames for 6 seconds