Coup - I'm trying to increase the player count

Game development with Board Game Arena Studio
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: Coup - I'm trying to increase the player count

Post by Tisaac »

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:

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;
    }
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.
Read the manual. And check materials.php file.
Post Reply

Return to “Developers”