Skip to content

Commit

Permalink
fix: check project
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliboy50 committed Aug 27, 2023
1 parent 8a2fefc commit 4497138
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gameinfos.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'year' => 2020,

// Game publisher (use empty string if there is no publisher)
'publisher' => 'Stratosphères',
'publisher' => 'Studio Stratosphères',

// Url of game publisher website
'publisher_website' => 'https://www.studiostratospheres.com/',
Expand Down
4 changes: 2 additions & 2 deletions modules/VelonimoPlayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function deserializeRoundsRanking(string $serialized): array
(!$roundAndRanking)
|| (count($roundAndRanking) !== 2)
) {
throw new BgaVisibleSystemException('Invalid rounds ranking');
throw new BgaVisibleSystemException('Invalid rounds ranking'); // NOI18N
}
$deserialized[(int) $roundAndRanking[0]] = (int) $roundAndRanking[1];
}
Expand Down Expand Up @@ -250,7 +250,7 @@ public function setHasCardLegendsElephant(bool $hasCardLegendsElephant): self
public function addRoundRanking(int $round, int $rank): self
{
if (isset($this->roundsRanking[$round])) {
throw new BgaVisibleSystemException('History cannot be rewritten');
throw new BgaVisibleSystemException('History cannot be rewritten'); // NOI18N
}

$this->roundsRanking[$round] = $rank;
Expand Down
12 changes: 6 additions & 6 deletions velonimo.game.php
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ function zombieTurn($state, $activePlayerId) {
return;
}

throw new BgaVisibleSystemException('Zombie mode not supported at this game state: '.$stateName);
throw new BgaVisibleSystemException('Zombie mode not supported at this game state: '.$stateName); // NOI18N
}

////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -1380,7 +1380,7 @@ private function fromSpecialPlayedCardsToVelonimoCards(string $playedCardsType):
'LAST',
'PREVIOUS',
], true)) {
throw new BgaVisibleSystemException('Invalid argument for ' . __FUNCTION__);
throw new BgaVisibleSystemException('Invalid argument for ' . __FUNCTION__); // NOI18N
}

$cardIds = array_values(array_filter(
Expand Down Expand Up @@ -1441,7 +1441,7 @@ private function fromSpecialCardIdToValue(int $cardId): int {
return VALUE_LEGENDS_ELEPHANT_STOP;
}

throw new BgaVisibleSystemException('Unsupported special card.');
throw new BgaVisibleSystemException('Unsupported special card.'); // NOI18N
}

/**
Expand Down Expand Up @@ -1541,7 +1541,7 @@ private function getPlayerById(int $playerId, array $players = null): VelonimoPl
}
}

throw new BgaVisibleSystemException('Player not found.');
throw new BgaVisibleSystemException('Player not found.'); // NOI18N
}

/**
Expand Down Expand Up @@ -1857,7 +1857,7 @@ private function fromSpecialCardIdToPlayerTableKey(int $cardId): string
} elseif ($cardId === CARD_ID_LEGENDS_ELEPHANT_STOP) {
return 'has_card_legends_elephant';
} else {
throw new BgaVisibleSystemException('Unsupported special card ID');
throw new BgaVisibleSystemException('Unsupported special card ID'); // NOI18N
}
}

Expand All @@ -1878,7 +1878,7 @@ private function fromSpecialCardIdToIsNotPlayableGameStateKey(int $cardId): stri
} elseif ($cardId === CARD_ID_LEGENDS_ELEPHANT_STOP) {
return self::GAME_STATE_LEGENDS_ELEPHANT_IS_NOT_PLAYABLE;
} else {
throw new BgaVisibleSystemException('Unsupported special card ID');
throw new BgaVisibleSystemException('Unsupported special card ID'); // NOI18N
}
}

Expand Down

0 comments on commit 4497138

Please sign in to comment.