Line 32: |
Line 32: |
| end | | end |
| return current_elos | | return current_elos |
| + | end |
| + | |
| + | function NanaminFunction.get_hq_bracket(hq_level) |
| + | local bracket = tonumber(hq_level or 0) |
| + | |
| + | --Get bracket of 5 |
| + | bracket = bracket - (bracket % 5) + 5 |
| + | if tonumber(hq_level or 0) % 5 == 0 then |
| + | bracket = bracket + 5 |
| + | end |
| + | |
| + | return bracket |
| end | | end |
| | | |
| return NanaminFunctions | | return NanaminFunctions |