function cardAttackToShieldDamage(attack){ if (attack >= 10000){ return 3; } if (attack >= 5001){ return 2; } if (attack >= 1){ return 1; } }