-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgameoptions.inc.php
More file actions
123 lines (118 loc) · 3.88 KB
/
Copy pathgameoptions.inc.php
File metadata and controls
123 lines (118 loc) · 3.88 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
<?php
/**
*------
* BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
* Planet Unknown implementation : © Timothée Pecatte <tim.pecatte@gmail.com>, Emmanuel Albisser <emmanuel.albisser@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.
* -----
*
* gameoptions.inc.php
*
* Planet Unknown game options description
*
*/
namespace PU;
require_once 'modules/php/constants.inc.php';
$game_options = [
OPTION_PLANET => [
'name' => totranslate('Planets'),
'values' => [
OPTION_PLANET_A => [
'name' => totranslate('Symmetric side only'),
'description' => totranslate('All players with same planet'),
'tmdisplay' => totranslate('Symmetric planets'),
],
OPTION_PLANET_B_TOO => [
'name' => totranslate('Asymmetric planets'),
'description' => totranslate('Each player can choose their planet board side'),
'tmdisplay' => totranslate('Asymmetric planets'),
],
],
],
OPTION_CORPORATION => [
'name' => totranslate('Corporations'),
'values' => [
OPTION_CORPORATION_UNIVERSAL => [
'name' => totranslate('Symmetric side only'),
'description' => totranslate('All players with same corporation'),
'tmdisplay' => totranslate('Symmetric corporations'),
],
OPTION_ALL_CORPORATIONS => [
'name' => totranslate('Asymmetric corporations'),
'description' => totranslate('Each player can choose their corporation board side'),
'tmdisplay' => totranslate('Asymmetric corporations'),
],
],
],
OPTION_EVENT_CARDS => [
'name' => totranslate('Event Cards'),
'values' => [
OPTION_EVENT_CARDS_GAME => [
'name' => totranslate('On'),
'description' => totranslate('With event cards'),
'tmdisplay' => totranslate('Event cards'),
'alpha' => true,
],
OPTION_NO_EVENT_CARDS_GAME => [
'name' => totranslate('Off'),
'description' => totranslate('Without event cards'),
'tmdisplay' => totranslate('No event cards'),
],
],
'default' => OPTION_NO_EVENT_CARDS_GAME,
'displaycondition' => [
// Note: only display for non-solo mode
[
'type' => 'minplayers',
'value' => [1, 2, 3, 4, 5, 6],
],
],
],
OPTION_PRIVATE_OBJECTIVE_CARDS => [
'name' => totranslate('Objective Cards'),
'values' => [
OPTION_PRIVATE_OBJECTIVE_CARDS_GAME => [
'name' => totranslate('On'),
'description' => totranslate('With private objective cards'),
'tmdisplay' => totranslate('Private objectives'),
],
OPTION_NO_PRIVATE_OBJECTIVE_CARDS_GAME => [
'name' => totranslate('Off'),
'description' => totranslate('Without private objective cards'),
'tmdisplay' => totranslate('No private objectives'),
],
],
'default' => OPTION_NO_PRIVATE_OBJECTIVE_CARDS_GAME,
'displaycondition' => [
// Note: only display for non-solo mode
[
'type' => 'minplayers',
'value' => [2, 3, 4, 5, 6],
],
],
],
];
$game_preferences = [
OPTION_CONFIRM => [
'name' => totranslate('Turn confirmation'),
'needReload' => false,
'default' => OPTION_CONFIRM_ENABLED,
'values' => [
OPTION_CONFIRM_ENABLED => ['name' => totranslate('Enabled')],
OPTION_CONFIRM_DISABLED => ['name' => totranslate('Disabled')],
OPTION_CONFIRM_TIMER => [
'name' => totranslate('Enabled with timer'),
],
],
],
OPTION_CONFIRM_UNDOABLE => [
'name' => totranslate('Undoable actions confirmation'),
'needReload' => false,
'values' => [
OPTION_CONFIRM_ENABLED => ['name' => totranslate('Enabled')],
OPTION_CONFIRM_DISABLED => ['name' => totranslate('Disabled')],
],
],
];