-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgameoptions.inc.php
92 lines (88 loc) · 3.68 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
*------
* BGA framework: © Gregory Isabelli <[email protected]> & Emmanuel Colin <[email protected]>
* TrickOfTheRails implementation : @ David Edelstein <[email protected]>
*
* 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
*
* TrickOfTheRails 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 trickoftherails.game.php)
*
* !! It is not a good idea to modify this file when a game is running !!
*
*/
$game_options = array(
// note: game variant ID should start at 100 (ie: 100, 101, 102, ...). The maximum is 199.
100 => array(
'name' => totranslate('Trick Lane setup'),
'values' => array(
1 => array( 'name' => totranslate('Basic'), 'description' => totranslate('Standard Trick Lane (fixed order for City and Locomotive cards)'), 'tmdisplay' => totranslate('Basic setup')),
2 => array( 'name' => totranslate('Expert Variant'), 'description' => totranslate('Placement of Locomotive and City cards in the Trick Lane is randomized'), 'tmdisplay' => totranslate('Expert setup'), 'alpha' => false, 'nobeginner' => true )
),
'default' => 1
),
101 => array (
'name' => totranslate('Team Variant'),
'values' => array (
1 => array( 'name' => totranslate('No teams')),
2 => array( 'name' => totranslate('Teams'), 'description' => totranslate('Players play as partners in teams of 2'), 'tmdisplay' => totranslate('Teams'), 'alpha' => false)
),
'startcondition' => array(
1 => array(),
2 => array(
array('type' => 'minplayers', 'value' => 4, 'message' => totranslate('Team Variant is only available for 4-player games')),
array('type' => 'maxplayers', 'value' => 4, 'message' => totranslate('Team Variant is only available for 4-player games'))
)
),
'displaycondition' => array(
// Note: do not display this option unless these conditions are met
array( 'type' => 'otheroption',
'id' => 201, // ELO OFF hardcoded framework option
'value' => 1, // 1 if OFF
)
),
'notdisplayedmessage' => totranslate('Team Variant only available with ELO off'),
'default' => 1,
)
);
$game_preferences = array(
100 => array(
'name' => totranslate('My hand location'),
'needReload' => true,
'values' => array(
1 => array( 'name' => totranslate( 'Top' )),
2 => array( 'name' => totranslate( 'Bottom' ))
),
'default' => 1
),
101 => array(
'name' => totranslate('Show current share values'),
'needReload' => true,
'values' => array(
1 => array( 'name' => totranslate( "Don't show" )),
2 => array( 'name' => totranslate( "Show" ))
),
'default' => 1
),
102 => array(
'name' => totranslate('Play card automatically if there is only one card you can play'),
'needReload' => false,
'values' => array(
0 => array( 'name' => totranslate( "Never" )),
1 => array( 'name' => totranslate( "Final hand only" )),
2 => array( 'name' => totranslate( "Always" ))
),
'default' => 0
)
);