| 3724 | } |
| 3725 | |
| 3726 | UString BattleScore::getText() |
| 3727 | { |
| 3728 | auto total = getTotal(); |
| 3729 | if (total > 500) |
| 3730 | { |
| 3731 | return tr("Very Good"); |
| 3732 | } |
| 3733 | else if (total > 200) |
| 3734 | { |
| 3735 | return tr("Good"); |
| 3736 | } |
| 3737 | else if (total > 0) |
| 3738 | { |
| 3739 | return tr("OK"); |
| 3740 | } |
| 3741 | else if (total > -200) |
| 3742 | { |
| 3743 | return tr("Poor"); |
| 3744 | } |
| 3745 | else |
| 3746 | { |
| 3747 | return tr("Very Poor"); |
| 3748 | } |
| 3749 | } |
| 3750 | |
| 3751 | } // namespace OpenApoc |
no test coverage detected