Re: Coup - I'm trying to increase the player count
Posted: 22 February 2021, 22:37
Read the manual. And check materials.php file.admiralspunky wrote: ↑22 February 2021, 16:23 I'm trying to find where the PHP file actually checks the options when it sets up the game. So far I've just gotten as far as:
What's going on there? It looks like you've got a two-dimensional array, and you're... comparing each element to another list? I can't tell.Code: Select all
public function meetsVariant($ref) { if (is_array($ref['variant'])) { foreach ($ref['variant'] as $key => $value) { if (self::getGameStateValue($key) != $value) { return false; } } } return true; }