-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaterial.inc.php
More file actions
389 lines (310 loc) · 10.3 KB
/
Copy pathmaterial.inc.php
File metadata and controls
389 lines (310 loc) · 10.3 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<?php
/**
*------
* BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
* newton implementation : © <Pietro Luigi Porcedda> <pietro.l.porcedda@gmail.com>
*
* 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.
* -----
*
* material.inc.php
*
* newton game material description
*
* Here, you can describe the material of your game with PHP variables.
*
* This file is loaded in your game logic class constructor, ie these variables
* are available everywhere in your game logic code.
*
*/
// $this->action_cards = [
// 0 => [
// 'color' => '',/*
// red
// green
// blue
// yellow
// reverse (exp)
// */
//
// 'action' => '', /*
// work
// technology
// travel
// lessons
// study
// joker
// */
//
//
// 'location' => '', /*
// <player_id>_desk
// <player_id>_hand
// global_reserve
// */
//
// 'position' => '', /*
// (desk) column
// */
//
// 'state' => '', /*
// (desk) under / over
// (global reserve) deck / display
// */
//
// 'data' => [
//
// 'volumes' => [
// 'green' => 0,
// 'orange' => 0,
// 'blue' => 0
// ],
//
// // card activation immediate effect
// 'gain' => [
// 'coins' => 0,
// 'points' => 0,
// 'potions' => 0,
// ],
//
// // gain condition (match case, always volumes)
// 'gain_if' => [
// 'green_volumes' => 0,
// 'orange_volumes' => 0,
// 'blue_volumes' => 0
// ],
//
// // cost of special action
// 'spend' => [
// 'coins' => 0,
// 'points' => 0,
// 'potions' => 0,
// 'cards' => 0,
// ],
//
// // bonuses of special action
// 'obtain' => [
// 'coins' => 0,
// 'points' => 0,
// 'potions' => 0,
// 'students' => 0,
// 'additional_book' => 0, //("... place a second bookshelf tile in the same action. The value of the action must be split.")
// 'additional_travel_cube' => 0, //("... place more than one Travel cube during this Travel action (you can place a cube in a place you pass through and in the place where you finish your movement).")
// 'ignore_library_requirements' => 0, //(... ignore the requirements of the book space where you want to play a Study Action.")
// 'teleport_scientist' => 0, //("... to move your Scientist to any free Village (with a silver or gold border without Bonus tokens)")
// 'double_bonus_token_effect' => 0, //("Double the effect of the Bonus tokens that you collect performing the Technology action of this card.")
// 'gain_again' => 0 //("Apply the immediate Special Effect (with a lightening symbol) of an Action card which has already been placed on your desk.")
//
// ],
//
// //(exp)
//
// // 'second_action' => 'action_card_second_action', // second action type (exp)
// // 'alt_action' => 'action_card_alternative_action', // alternative action type (exp)
//
// /* 'special_gain' => [
// 'coins' => 0,
// 'points' => 0,
// 'potions' => 0,
//
// 'income_tile' => 0, // owned
// 'bonus_token' => 0, // owned
// 'city_bonus' => 0, // visited
//
// 'mater_card' => 0,
//
// 'work' => 0,
// 'technology' => 0,
// 'travel' => 0,
// 'lessons' => 0,
// 'study' => 0,
// 'joker' => 0,
//
// 'card_1' => 0,
// 'card_2' => 0,
// 'card_3' => 0,
// 'card_any' => 0,
// ],
//
// 'special_gain_if' => [
// 'work' => 0,
// 'technology' => 0,
// 'travel' => 0,
// 'lessons' => 0,
// 'study' => 0,
// 'joker' => 0,
// ] */
// ],
//
// 'tooltip' => clienttranslate("")
// ]
// ];
/* $this->master_cards = [
// MULTI ACTIONS
1 => [
'name' => 'Robert Boyle',
'data' => [
'action' => [
'type' => 'study',
'value' => 4,
'bonus' => 'multi',
],
'points' => 0,
],
'tooltip' => clienttranslate("Perform a Study Action with a value of 4. With this action you can place more Bookshelf tiles and divide the value of the action (for example, by placing 1 Bookshelf tile on shelf 1, and another on shelf 3; or 4 Bookshelf tiles on shelf 1, etc.). You must meet the requirements in each book space you wish to fill.")
],
3 => [
'name' => 'Thomas Browne',
'data' => [
'action' => [
'type' => 'lessons',
'value' => 4,
'bonus' => 'multi',
],
'points' => 1,
],
'tooltip' => clienttranslate("Perform a Lessons action with a value of 4. With this action you can take more than one action card by splitting the value of the action (for example, by taking a card with a value of 1 and a card with a value of 3, or 4 cards each with a value of 1, etc.).")
],
10 => [
'name' => 'Galileo Galilei',
'data' => [
'action' => [
'type' => 'lessons',
'value' => 3,
'bonus' => 'multi',
],
'points' => 3,
],
'tooltip' => clienttranslate("Perform a Travel action with a value of 3. You can place 1 Travel cube on each place you pass through.")
],
12 => [
'name' => 'Edmond Halley',
'data' => [
'action' => [
'type' => 'technology',
'value' => 4,
'bonus' => 'multi',
],
'points' => 2,
],
'tooltip' => clienttranslate("Perform a Technology action with a value of 4. With this action you can move more than 1 Student by splitting the value of the action (for example, by moving 1 Student by 1 space and another by 3 spaces, or by moving 4 Students by 1 space each).")
],
// VOLUMES
2 => [
'name' => 'Tycho Brahe',
'effect' => [
'volumes' => [
'blue' => 2
],
],
'points' => 5,
'tooltip' => clienttranslate("Gives you 2 permanent blue Volumes.")
],
15 => [
'name' => 'Gottfried Leibniz',
'data' => [
'volumes' => [
'orange' => 2
],
'points' => 5,
],
'tooltip' => clienttranslate("Gives you 2 permanent orange Volumes.")
],
16 => [
'name' => 'Isaac Newton',
'data' => [
'volumes' => [
'green' => 2
],
'points' => 5,
],
'tooltip' => clienttranslate("Gives you 2 permanent green Volumes.")
],
9 => [
'name' => 'Daniel Fahrenheit',
'data' => [
'volumes' => [
'any' => 1
],
'points' => 6,
],
'tooltip' => clienttranslate("Gives you 1 permanent Volume. You may choose the color of the Volume each time that you use this Master's power.")
],
// GAIN
4 => [
'name' => 'Giordano Bruno',
'data' => [
'gain' => [
'coins' => 6
],
'points' => 4,
],
'tooltip' => clienttranslate("Receive 6 coins.")
],
8 => [
'name' => 'Nicola Cusano',
'data' => [
'gain' => [
'postions' => 3
],
'points' => 4,
],
'tooltip' => clienttranslate("Receive 3 Potion tokens.")
],
11 => [
'name' => 'William Gilbert',
'data' => [
'gain' => [
'student' => 1,
],
'points' => 7,
],
'tooltip' => clienttranslate("Place 1 Student at the bottom of the Technology track.")
],
// IGNORE REQUIREMENTS
13 => [
'name' => 'Nicolaus Copernicus',
'data' => [
'action' => [
'type' => 'study',
'value' => '3',
'bonus' => 'ignore_requirements',
],
'points' => 2,
],
'tooltip' => clienttranslate("Perform a Study Action with a value of 3. Ignore the requirements of the book space you decide to fill.")
],
13 => [
'name' => 'Christiaan Huygens',
'data' => [
'action' => [
'type' => 'work',
'value' => '3',
'bonus' => 'ignore_requirements',
],
'points' => 2,
],
'tooltip' => clienttranslate("Perform a Work action with a value of 3. If, by performing this action, you reach an Objective tile at the end of the track, ignore the requirements necessary to activate it.")
],
19 => [
'name' => 'Evangelista Torricelli',
'data' => [
'action' => [
'type' => 'technology',
'value' => '3',
'bonus' => 'ignore_requirements',
],
'points' => 2,
],
'tooltip' => clienttranslate("Perform a Technology action with a value of 3. If, by performing this action, you reach an Objective tile, ignore the requirements necessary to activate it.")
],
// MISC
22 => [
'name' => 'Robert Hooke',
'data' => [
'points' => 9,
],
'tooltip' => clienttranslate("No effect.")
],
]; */