-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameoptions.inc.php
73 lines (71 loc) · 3.03 KB
/
gameoptions.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
*------
* BGA framework: © Gregory Isabelli <[email protected]> & Emmanuel Colin <[email protected]>
* Velonimo implementation : © Oliver THEBAULT (a.k.a. Oliboy50)
*
* This code has been produced on the BGA studio platform for use on http://boardgamearena.com.
* See http://en.boardgamearena.com/#!doc/Studio for more information.
* -----
*
* gameoptions.inc.php
*
* Velonimo game options description
*
* In this file, you can define your game options (= game variants).
*
* Note: If your game has no variant, you don't have to modify this file.
*
* Note²: All options defined in this file should have a corresponding "game state labels"
* with the same ID (see "initGameStateLabels" in velonimo.game.php)
*
* !! It is not a good idea to modify this file when a game is running !!
*
*
* // note: game variant ID should start at 100 (ie: 100, 101, 102, ...). The maximum is 199.
* 100 => array(
* 'name' => totranslate('my game option'),
* 'values' => array(
* // A simple value for this option:
* 1 => array( 'name' => totranslate('option 1') )
*
* // A simple value for this option.
* // If this value is chosen, the value of "tmdisplay" is displayed in the game lobby
* 2 => array( 'name' => totranslate('option 2'), 'tmdisplay' => totranslate('option 2') ),
*
* // Another value, with other options:
* // description => this text will be displayed underneath the option when this value is selected to explain what it does
* // beta=true => this option is in beta version right now (there will be a warning)
* // alpha=true => this option is in alpha version right now (there will be a warning, and starting the game will be allowed only in training mode except for the developer)
* // nobeginner=true => this option is not recommended for beginners
* // firstgameonly=true => this option is recommended only for the first game (discovery option)
* 3 => array( 'name' => totranslate('option 3'), 'description' => totranslate('this option does X'), 'beta' => true, 'nobeginner' => true )
* ),
* 'default' => 1
* ),
*/
$game_options = [
100 => [
'name' => totranslate('Number of rounds'),
'values' => [
3 => ['name' => totranslate('3 rounds')],
4 => ['name' => totranslate('4 rounds')],
5 => ['name' => totranslate('5 rounds (Official rule)')],
6 => ['name' => totranslate('6 rounds')],
7 => ['name' => totranslate('7 rounds')],
],
'default' => 5,
],
110 => [
'name' => totranslate('With "Legend" cards'),
'values' => [
0 => ['name' => totranslate('No')],
1 => [
'name' => totranslate('Yes'),
'description' => totranslate('Permanently give a coach to each player. Also give the broom wagon to the loser of the previous round.'),
],
],
'default' => 0,
'nobeginner' => true,
],
];