| 411 | } |
| 412 | |
| 413 | bool UniverseClient::canBeamToTeamShip() const { |
| 414 | auto playerWorldId = m_clientContext->playerWorldId(); |
| 415 | if (playerWorldId.empty()) |
| 416 | return false; |
| 417 | |
| 418 | if (m_mainPlayer->isAdmin()) |
| 419 | return true; |
| 420 | |
| 421 | if (canBeamUp()) |
| 422 | return true; |
| 423 | |
| 424 | if (playerWorldId.is<ClientShipWorldId>() && m_clientContext->shipUpgrades().capabilities.contains("teleport")) |
| 425 | return true; |
| 426 | |
| 427 | return false; |
| 428 | } |
| 429 | |
| 430 | bool UniverseClient::canTeleport() const { |
| 431 | if (m_mainPlayer->isAdmin()) |
no test coverage detected