Stability++ #209
Annotations
10 warnings
server/src/Core/Backtrack.php#L78
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
foreach ($this->saveState as $playerId => $playerData) {
$player = $this->game->getPlayer($playerId);
$player->setPosition($playerData['a']);
- // @phpstan-ignore-line
- $player->getSight()->look($playerData['b'], $playerData['c']);
+
// @phpstan-ignore-line
$player->setHeadHeight($playerData['d']);
// @phpstan-ignore-line
|
server/src/Core/Backtrack.php#L79
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$player->setPosition($playerData['a']);
// @phpstan-ignore-line
$player->getSight()->look($playerData['b'], $playerData['c']);
- // @phpstan-ignore-line
- $player->setHeadHeight($playerData['d']);
+
// @phpstan-ignore-line
}
}
|
server/src/Core/Backtrack.php#L96
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
$player = $this->game->getPlayer($playerId);
$player->setPosition($playerData['a']);
- // @phpstan-ignore-line
- $player->getSight()->look($playerData['b'], $playerData['c']);
+
// @phpstan-ignore-line
$player->setHeadHeight($playerData['d']);
// @phpstan-ignore-line
|
server/src/Core/Backtrack.php#L97
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$player->setPosition($playerData['a']);
// @phpstan-ignore-line
$player->getSight()->look($playerData['b'], $playerData['c']);
- // @phpstan-ignore-line
- $player->setHeadHeight($playerData['d']);
+
// @phpstan-ignore-line
}
/**
|
server/src/Core/Game.php#L290
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
private function playerKilledEvent(Player $playerCulprit, Player $playerDead, int $itemId, bool $headShot): void
{
if ($playerDead->isPlayingOnAttackerSide() === $playerCulprit->isPlayingOnAttackerSide()) {
- // team kill
- $this->score->getPlayerStat($playerCulprit->getId())->removeKill();
+
} else {
$this->score->getPlayerStat($playerCulprit->getId())->addKill($headShot);
}
|
server/src/Core/Game.php#L343
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function bombDefused(Player $defuser): void
{
- $defuser->getInventory()->earnMoney(300);
+
$soundEvent = new SoundEvent($this->bomb->getPosition(), SoundType::BOMB_DEFUSED);
$this->addSoundEvent($soundEvent->setItem($this->bomb));
$this->roundEnd(false, RoundEndReason::BOMB_DEFUSED);
|
server/src/Core/Game.php#L347
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$soundEvent = new SoundEvent($this->bomb->getPosition(), SoundType::BOMB_DEFUSED);
$this->addSoundEvent($soundEvent->setItem($this->bomb));
$this->roundEnd(false, RoundEndReason::BOMB_DEFUSED);
- $this->bombReset();
+
}
public function bombPlanted(Player $planter): void
{
|
server/src/Core/Game.php#L353
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function bombPlanted(Player $planter): void
{
$this->bombPlanted = true;
- $planter->getInventory()->earnMoney(300);
+
$soundEvent = new SoundEvent($this->bomb->getPosition(), SoundType::BOMB_PLANTED);
$this->addSoundEvent($soundEvent->setItem($this->bomb));
$event = new PlantEvent(function (): void {
|
server/src/Core/Game.php#L407
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$callback = function () use ($startRoundFreezeTime, $roundEndEvent): void {
$this->halfTimeSwapTeams();
$this->roundReset(true, $roundEndEvent);
- $this->addEvent($startRoundFreezeTime);
+
};
$event = new PauseStartEvent($this, PauseReason::HALF_TIME, $callback, $this->properties->half_time_freeze_sec * 1000);
$this->paused = true;
|
server/src/Core/Game.php#L482
Escaped Mutant for Mutator "MatchArmRemoval":
@@ @@
if (!$attackersWins) {
$amount += match ($roundEndEvent->reason) {
RoundEndReason::ALL_ENEMIES_ELIMINATED, RoundEndReason::TIME_RUNS_OUT => 3250,
- RoundEndReason::BOMB_DEFUSED => 3500,
RoundEndReason::BOMB_EXPLODED => throw new GameException('Invalid? ' . $roundEndEvent->reason->value),
};
} else {
|
The logs for this run have expired and are no longer available.
Loading