static public void MoveBlinkRender(BattleAnimation ba, SpriteBatch spriteBatch) { if (ba.IsModulo_Zero()) // This to make the animation a bit slower for the eyes. { spriteBatch.Draw(ba.anim_tex, ba.destRect, ba.sourceRect, Color.White, 0f, Vector2.Zero, SpriteEffects.None, 0f); } }
// DON'T TOUCH THIS /// <summary> /// This method is why the health bar is "animated" /// </summary> static public void DamageUpdate(BattleAnimation ba, float delta) { if (ba.IsModulo_Zero()) // This to make the animation a bit slower for the eyes. { if (ba.total_damage <= 0) { ba.anim_duration = 1f; ba.anim_time = 0f; ba.animUpdateDelegate = null; return; // Fast exit } ba.mon.stats.ReduceHealth(1); ba.total_damage -= 1; } }