public static void DealDamage(float damage, bool direct = false) { float dmg = damage; if (!direct) { dmg = damage * (1 - (currentArmor / maxArmor)); currentArmor -= damage; if (currentArmor < 0.0f) { currentArmor = 0.0f; } } currentHealth -= dmg; stats.blooding.BloodScreen(dmg); if (currentHealth <= 0.0f) { currentHealth = 0.0f; player.Lose(); } }