(role, force = false)
| 374 | } |
| 375 | |
| 376 | setRole (role, force = false) { |
| 377 | const oldRole = this.get('role') |
| 378 | if ((oldRole === role) || (oldRole && !force)) { return } |
| 379 | this.set('role', role) |
| 380 | this.patch() |
| 381 | application.tracker.identify() |
| 382 | return this.get('role') |
| 383 | } |
| 384 | |
| 385 | // y = a * ln(1/b * (x + c)) + 1 |
| 386 | static levelFromExp (xp) { |
no test coverage detected