-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgameoptions.inc.php
220 lines (208 loc) · 5.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?php
/**
*------
* BGA framework: © Gregory Isabelli <[email protected]> & Emmanuel Colin <[email protected]>
* santorini implementation : © quietmint
*
* 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
*
* santorini 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 santorini.game.php)
*
* !! It is not a good idea to modify this file when a game is running !!
*
*/
require_once("modules/constants.inc.php");
$game_options = [
OPTION_TEAMS => [
'name' => totranslate('Teams'),
'default' => TEAMS_RANDOM,
'values' => [
TEAMS_RANDOM => [
'name' => totranslate('Random'),
],
TEAMS_1_AND_2 => [
'name' => totranslate('By table order (1st/2nd versus 3rd/4th)'),
],
TEAMS_1_AND_3 => [
'name' => totranslate('By table order (1st/3rd versus 2nd/4th)'),
],
TEAMS_1_AND_4 => [
'name' => totranslate('By table order (1st/4th versus 2nd/3rd)'),
],
],
'displaycondition' => [
[
'type' => 'maxplayers',
'value' => 4,
],
],
],
OPTION_GOLDEN_FLEECE => [
'name' => totranslate('Golden Fleece Variant'),
'default' => NO,
'values' => [
NO => [
'name' => totranslate('No'),
],
YES => [
'name' => totranslate('Yes'),
'tmdisplay' => totranslate('Golden Fleece Variant'),
'description' => totranslate('One powerful ability is available to any player neighboring the Ram figure'),
'nobeginner' => true,
],
],
'displaycondition' => [
[
'type' => 'maxplayers',
'value' => 2,
],
],
],
OPTION_SIMPLE => [
'name' => totranslate('Simple Gods'),
'default' => YES,
'values' => [
NO => [
'name' => totranslate('No'),
],
YES => [
'name' => totranslate('Yes'),
'tmdisplay' => totranslate('Simple Gods'),
'description' => totranslate('Includes 10 basic powers'),
],
],
'displaycondition' => [
[
'type' => 'otheroptionisnot',
'id' => OPTION_GOLDEN_FLEECE,
'value' => YES,
],
],
],
OPTION_HERO => [
'name' => totranslate('Hero Powers'),
'default' => NO,
'values' => [
NO => [
'name' => totranslate('No'),
],
YES => [
'name' => totranslate('Yes'),
'tmdisplay' => totranslate('Hero Powers'),
'description' => totranslate('Includes 10 once-per-game powers'),
],
],
'displaycondition' => [
[
'type' => 'otheroptionisnot',
'id' => OPTION_GOLDEN_FLEECE,
'value' => YES,
],
[
'type' => 'maxplayers',
'value' => 2,
],
],
],
OPTION_ADVANCED => [
'name' => totranslate('Advanced Gods'),
'default' => NO,
'values' => [
NO => [
'name' => totranslate('No'),
],
YES => [
'name' => totranslate('Yes'),
'tmdisplay' => totranslate('Advanced Gods'),
'description' => totranslate('Includes all other powers'),
'nobeginner' => true,
],
PERFECT => [
'name' => totranslate('Perfect Information'),
'tmdisplay' => totranslate('Perfect Information'),
'description' => totranslate('Includes all other powers, except those involving hidden information or luck'),
'nobeginner' => true,
],
],
'displaycondition' => [
[
'type' => 'otheroptionisnot',
'id' => OPTION_GOLDEN_FLEECE,
'value' => YES,
],
],
],
OPTION_SETUP => [
'name' => totranslate('Setup'),
'default' => QUICK,
'values' => [
QUICK => [
'name' => totranslate('Quick Setup'),
'tmdisplay' => totranslate('Quick Setup'),
],
LIMITED => [
'name' => totranslate('Limited Choice'),
'tmdisplay' => totranslate('Limited Choice'),
'description' => totranslate('First player chooses available powers from a limited set'),
],
FULL => [
'name' => totranslate('Full Choice'),
'tmdisplay' => totranslate('Full Choice'),
'description' => totranslate('First player chooses available powers from the complete set'),
],
],
'displayconditionoperand' => 'or',
'displaycondition' => [
[
'type' => 'otheroptionisnot',
'id' => OPTION_GOLDEN_FLEECE,
'value' => NO,
],
[
'type' => 'otheroptionisnot',
'id' => OPTION_SIMPLE,
'value' => NO,
],
[
'type' => 'otheroptionisnot',
'id' => OPTION_HERO,
'value' => NO,
],
[
'type' => 'otheroptionisnot',
'id' => OPTION_ADVANCED,
'value' => NO,
],
],
],
];
$game_preferences = [
HELPERS => [
'name' => totranslate('Display board coordinates/height'),
'needReload' => false,
'values' => [
HELPERS_ENABLED => ['name' => totranslate('Enabled')],
HELPERS_DISABLED => ['name' => totranslate('Disabled')],
]
],
CONFIRM => [
'name' => totranslate('Turn confirmation'),
'needReload' => false,
'values' => [
CONFIRM_TIMER => ['name' => totranslate('Enabled with timer')],
CONFIRM_ENABLED => ['name' => totranslate('Enabled')],
CONFIRM_DISABLED => ['name' => totranslate('Disabled')],
]
],
];