We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
12 | public function buildBetaFunctionsProcessor(AbstractSmrPlayer $player): void { |
||
13 | $sector_to = Request::getInt('sector_to'); |
||
14 | if (!SmrSector::sectorExists($player->getGameID(), $sector_to)) { |
||
15 | create_error('Sector ID is not in any galaxy.'); |
||
16 | } |
||
17 | $player->setSectorID($sector_to); |
||
18 | $player->setLandedOnPlanet(false); |
||
19 | // Update sector lock |
||
20 | $player->update(); |
||
21 | $lock = SectorLock::getInstance(); |
||
22 | $lock->release(); |
||
23 | $lock->acquireForPlayer($player); |
||
24 | } |
||
27 |