@gamepark/zenith 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PlayerId.js +1 -2
- package/dist/TeamColor.js +7 -13
- package/dist/ZenithOptions.js +1 -4
- package/dist/ZenithRules.js +71 -122
- package/dist/ZenithSetup.js +123 -266
- package/dist/index.js +3 -9
- package/dist/material/Agent.js +4 -7
- package/dist/material/Agents.js +920 -923
- package/dist/material/Bonus.js +5 -8
- package/dist/material/Bonuses.js +29 -33
- package/dist/material/Credit.js +4 -7
- package/dist/material/Faction.js +4 -7
- package/dist/material/Influence.js +4 -7
- package/dist/material/LocationType.js +2 -5
- package/dist/material/MaterialType.js +2 -5
- package/dist/material/effect/Effect.js +5 -10
- package/dist/material/effect/EffectType.js +2 -5
- package/dist/rules/CustomMoveType.js +2 -5
- package/dist/rules/DiscardActionRule.js +26 -75
- package/dist/rules/Memory.js +2 -5
- package/dist/rules/MulliganRule.js +47 -126
- package/dist/rules/PlayCardRule.js +68 -134
- package/dist/rules/RefillRule.js +83 -190
- package/dist/rules/RuleId.js +2 -5
- package/dist/rules/discard-action/DiplomacyActions.js +15 -20
- package/dist/rules/discard-action/DiplomacyBoardRule.js +27 -64
- package/dist/rules/discard-action/TechnologyActions.js +44 -48
- package/dist/rules/discard-action/TechnologyBoardRule.js +34 -102
- package/dist/rules/effect/ChoiceRule.js +21 -81
- package/dist/rules/effect/ConditionalRule.js +77 -141
- package/dist/rules/effect/DevelopTechnologyRule.js +53 -119
- package/dist/rules/effect/DiscardRule.js +37 -90
- package/dist/rules/effect/EffectRule.js +60 -138
- package/dist/rules/effect/ExileRule.js +62 -147
- package/dist/rules/effect/GiveCreditRule.js +24 -73
- package/dist/rules/effect/GiveInfluenceRule.js +38 -101
- package/dist/rules/effect/GiveLeaderBadgeRule.js +18 -46
- package/dist/rules/effect/GiveZenithiumRule.js +25 -79
- package/dist/rules/effect/MobilizeRule.js +38 -93
- package/dist/rules/effect/ResetInfluenceRule.js +21 -58
- package/dist/rules/effect/SpendCreditRule.js +29 -102
- package/dist/rules/effect/SpendZenithiumRule.js +32 -109
- package/dist/rules/effect/StealCreditRule.js +15 -64
- package/dist/rules/effect/TakeBonusRule.js +30 -91
- package/dist/rules/effect/TakeLeaderBadgeRule.js +31 -88
- package/dist/rules/effect/TakeTechnologyBonusTokenRule.js +45 -112
- package/dist/rules/effect/TransferRule.js +47 -81
- package/dist/rules/effect/WinCreditRule.js +60 -130
- package/dist/rules/effect/WinInfluenceRule.js +128 -248
- package/dist/rules/effect/WinZenithiumRule.js +24 -80
- package/dist/rules/effect/index.js +19 -35
- package/dist/rules/helper/BonusHelper.js +32 -64
- package/dist/rules/helper/CreditHelper.js +19 -44
- package/dist/rules/helper/EffectHelper.js +81 -123
- package/dist/rules/helper/EffectRuleIds.js +25 -29
- package/dist/rules/helper/EndGameHelper.js +24 -57
- package/dist/rules/helper/InfluenceHelper.js +18 -44
- package/dist/rules/helper/MobilizeHelper.js +27 -53
- package/dist/rules/helper/PlanetHelper.js +45 -78
- package/dist/rules/helper/PlayerHelper.js +24 -60
- package/dist/rules/helper/TechnologyHelper.js +31 -87
- package/dist/rules/helper/ZenithiumHelper.js +25 -48
- package/package.json +4 -3
package/dist/ZenithSetup.js
CHANGED
|
@@ -1,82 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
19
|
-
if (!m) return o;
|
|
20
|
-
var i = m.call(o), r, ar = [], e;
|
|
21
|
-
try {
|
|
22
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
23
|
-
}
|
|
24
|
-
catch (error) { e = { error: error }; }
|
|
25
|
-
finally {
|
|
26
|
-
try {
|
|
27
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28
|
-
}
|
|
29
|
-
finally { if (e) throw e.error; }
|
|
30
|
-
}
|
|
31
|
-
return ar;
|
|
32
|
-
};
|
|
33
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
34
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
35
|
-
if (ar || !(i in from)) {
|
|
36
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
-
ar[i] = from[i];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
-
};
|
|
42
|
-
var __values = (this && this.__values) || function(o) {
|
|
43
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
44
|
-
if (m) return m.call(o);
|
|
45
|
-
if (o && typeof o.length === "number") return {
|
|
46
|
-
next: function () {
|
|
47
|
-
if (o && i >= o.length) o = void 0;
|
|
48
|
-
return { value: o && o[i++], done: !o };
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
52
|
-
};
|
|
53
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
54
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
55
|
-
};
|
|
56
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
-
exports.ZenithSetup = void 0;
|
|
58
|
-
var rules_api_1 = require("@gamepark/rules-api");
|
|
59
|
-
var lodash_1 = require("lodash");
|
|
60
|
-
var shuffle_1 = __importDefault(require("lodash/shuffle"));
|
|
61
|
-
var Agent_1 = require("./material/Agent");
|
|
62
|
-
var Bonus_1 = require("./material/Bonus");
|
|
63
|
-
var Credit_1 = require("./material/Credit");
|
|
64
|
-
var Faction_1 = require("./material/Faction");
|
|
65
|
-
var Influence_1 = require("./material/Influence");
|
|
66
|
-
var LocationType_1 = require("./material/LocationType");
|
|
67
|
-
var MaterialType_1 = require("./material/MaterialType");
|
|
68
|
-
var Memory_1 = require("./rules/Memory");
|
|
69
|
-
var RuleId_1 = require("./rules/RuleId");
|
|
70
|
-
var TeamColor_1 = require("./TeamColor");
|
|
71
|
-
var ZenithRules_1 = require("./ZenithRules");
|
|
72
|
-
var ZenithSetup = (function (_super) {
|
|
73
|
-
__extends(ZenithSetup, _super);
|
|
74
|
-
function ZenithSetup() {
|
|
75
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
|
|
76
|
-
_this.Rules = ZenithRules_1.ZenithRules;
|
|
77
|
-
return _this;
|
|
78
|
-
}
|
|
79
|
-
ZenithSetup.prototype.setupMaterial = function (_options) {
|
|
1
|
+
import { MaterialGameSetup } from '@gamepark/rules-api';
|
|
2
|
+
import { times } from 'lodash';
|
|
3
|
+
import shuffle from 'lodash/shuffle';
|
|
4
|
+
import { agents } from './material/Agent';
|
|
5
|
+
import { allBonuses } from './material/Bonus';
|
|
6
|
+
import { Credit } from './material/Credit';
|
|
7
|
+
import { factions } from './material/Faction';
|
|
8
|
+
import { Influence, influences } from './material/Influence';
|
|
9
|
+
import { LocationType } from './material/LocationType';
|
|
10
|
+
import { MaterialType } from './material/MaterialType';
|
|
11
|
+
import { Memory } from './rules/Memory';
|
|
12
|
+
import { RuleId } from './rules/RuleId';
|
|
13
|
+
import { TeamColor, teamColors } from './TeamColor';
|
|
14
|
+
import { ZenithRules } from './ZenithRules';
|
|
15
|
+
export class ZenithSetup extends MaterialGameSetup {
|
|
16
|
+
Rules = ZenithRules;
|
|
17
|
+
setupMaterial(_options) {
|
|
80
18
|
this.setupDeck();
|
|
81
19
|
this.setupPlayers();
|
|
82
20
|
this.setupInfluences();
|
|
@@ -85,232 +23,151 @@ var ZenithSetup = (function (_super) {
|
|
|
85
23
|
this.setupTeams();
|
|
86
24
|
this.setupInfluenceDisc();
|
|
87
25
|
this.setupBonuses();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
id:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
id: influence
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
106
|
-
finally {
|
|
107
|
-
try {
|
|
108
|
-
if (influences_1_1 && !influences_1_1.done && (_a = influences_1.return)) _a.call(influences_1);
|
|
109
|
-
}
|
|
110
|
-
finally { if (e_1) throw e_1.error; }
|
|
111
|
-
}
|
|
112
|
-
var technologyBoards = this.material(MaterialType_1.MaterialType.TechnologyBoard).getIndexes();
|
|
113
|
-
try {
|
|
114
|
-
for (var technologyBoards_1 = __values(technologyBoards), technologyBoards_1_1 = technologyBoards_1.next(); !technologyBoards_1_1.done; technologyBoards_1_1 = technologyBoards_1.next()) {
|
|
115
|
-
var technologyBoardIndex = technologyBoards_1_1.value;
|
|
116
|
-
this.material(MaterialType_1.MaterialType.BonusToken).createItem({
|
|
117
|
-
id: shuffledBonuses.shift(),
|
|
118
|
-
location: {
|
|
119
|
-
type: LocationType_1.LocationType.TechnologyBoardBonusSpace,
|
|
120
|
-
parent: technologyBoardIndex,
|
|
121
|
-
x: 2
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
127
|
-
finally {
|
|
128
|
-
try {
|
|
129
|
-
if (technologyBoards_1_1 && !technologyBoards_1_1.done && (_b = technologyBoards_1.return)) _b.call(technologyBoards_1);
|
|
130
|
-
}
|
|
131
|
-
finally { if (e_2) throw e_2.error; }
|
|
26
|
+
}
|
|
27
|
+
setupBonuses() {
|
|
28
|
+
const shuffledBonuses = shuffle(allBonuses);
|
|
29
|
+
for (const influence of influences) {
|
|
30
|
+
const bonus = shuffledBonuses.shift();
|
|
31
|
+
this.material(MaterialType.BonusToken).createItem({
|
|
32
|
+
id: bonus,
|
|
33
|
+
location: {
|
|
34
|
+
type: LocationType.PlanetBoardBonusSpace,
|
|
35
|
+
id: influence
|
|
36
|
+
}
|
|
37
|
+
});
|
|
132
38
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
}
|
|
39
|
+
const technologyBoards = this.material(MaterialType.TechnologyBoard).getIndexes();
|
|
40
|
+
for (const technologyBoardIndex of technologyBoards) {
|
|
41
|
+
this.material(MaterialType.BonusToken).createItem({
|
|
42
|
+
id: shuffledBonuses.shift(),
|
|
43
|
+
location: {
|
|
44
|
+
type: LocationType.TechnologyBoardBonusSpace,
|
|
45
|
+
parent: technologyBoardIndex,
|
|
46
|
+
x: 2
|
|
47
|
+
}
|
|
48
|
+
});
|
|
143
49
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
50
|
+
for (const bonus of shuffledBonuses) {
|
|
51
|
+
this.material(MaterialType.BonusToken).createItem({
|
|
52
|
+
id: bonus,
|
|
53
|
+
location: {
|
|
54
|
+
type: LocationType.BonusTokenStock
|
|
55
|
+
}
|
|
56
|
+
});
|
|
150
57
|
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
(0, lodash_1.times)(3, function () {
|
|
157
|
-
_this.material(MaterialType_1.MaterialType.InfluenceDisc).createItem({
|
|
58
|
+
}
|
|
59
|
+
setupInfluenceDisc() {
|
|
60
|
+
for (const influence of influences) {
|
|
61
|
+
times(3, () => {
|
|
62
|
+
this.material(MaterialType.InfluenceDisc).createItem({
|
|
158
63
|
id: influence,
|
|
159
64
|
location: {
|
|
160
|
-
type:
|
|
65
|
+
type: LocationType.InfluenceDiscStock,
|
|
161
66
|
id: influence
|
|
162
67
|
}
|
|
163
68
|
});
|
|
164
69
|
});
|
|
165
|
-
};
|
|
166
|
-
try {
|
|
167
|
-
for (var influences_2 = __values(Influence_1.influences), influences_2_1 = influences_2.next(); !influences_2_1.done; influences_2_1 = influences_2.next()) {
|
|
168
|
-
var influence = influences_2_1.value;
|
|
169
|
-
_loop_1(influence);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
173
|
-
finally {
|
|
174
|
-
try {
|
|
175
|
-
if (influences_2_1 && !influences_2_1.done && (_a = influences_2.return)) _a.call(influences_2);
|
|
176
|
-
}
|
|
177
|
-
finally { if (e_4) throw e_4.error; }
|
|
178
70
|
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
this.material(
|
|
71
|
+
}
|
|
72
|
+
setupLeaderBadge() {
|
|
73
|
+
this.material(MaterialType.LeaderBadgeToken).createItem({
|
|
182
74
|
location: {
|
|
183
|
-
type:
|
|
75
|
+
type: LocationType.DiplomacyBoardLeaderBadgeSpace
|
|
184
76
|
}
|
|
185
77
|
});
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
78
|
+
}
|
|
79
|
+
setupInfluences() {
|
|
80
|
+
for (const planet of influences) {
|
|
81
|
+
this.material(MaterialType.InfluenceDisc).createItem({
|
|
82
|
+
id: planet,
|
|
83
|
+
location: {
|
|
84
|
+
type: LocationType.PlanetBoardInfluenceDiscSpace,
|
|
193
85
|
id: planet,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
x: this.getPlanetStartPosition(planet)
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
203
|
-
finally {
|
|
204
|
-
try {
|
|
205
|
-
if (influences_3_1 && !influences_3_1.done && (_a = influences_3.return)) _a.call(influences_3);
|
|
206
|
-
}
|
|
207
|
-
finally { if (e_5) throw e_5.error; }
|
|
86
|
+
x: this.getPlanetStartPosition(planet)
|
|
87
|
+
}
|
|
88
|
+
});
|
|
208
89
|
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (planet ===
|
|
90
|
+
}
|
|
91
|
+
getPlanetStartPosition(planet) {
|
|
92
|
+
if (planet === Influence.Terra)
|
|
212
93
|
return -1;
|
|
213
94
|
return 0;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
this.material(
|
|
95
|
+
}
|
|
96
|
+
setupDeck() {
|
|
97
|
+
const shuffledAgents = shuffle(agents);
|
|
98
|
+
this.material(MaterialType.AgentCard).createItems(shuffledAgents.map((agent) => ({
|
|
218
99
|
id: agent,
|
|
219
100
|
location: {
|
|
220
|
-
type:
|
|
101
|
+
type: LocationType.AgentDeck
|
|
221
102
|
}
|
|
222
|
-
})
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
for (var _b = __values(this.game.players), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
229
|
-
var player = _c.value;
|
|
230
|
-
this.setupPlayer(deck, player);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
234
|
-
finally {
|
|
235
|
-
try {
|
|
236
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
237
|
-
}
|
|
238
|
-
finally { if (e_6) throw e_6.error; }
|
|
103
|
+
})));
|
|
104
|
+
}
|
|
105
|
+
setupPlayers() {
|
|
106
|
+
const deck = this.material(MaterialType.AgentCard).location(LocationType.AgentDeck).deck();
|
|
107
|
+
for (const player of this.game.players) {
|
|
108
|
+
this.setupPlayer(deck, player);
|
|
239
109
|
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
x: 0
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
262
|
-
finally {
|
|
263
|
-
try {
|
|
264
|
-
if (teamColors_1_1 && !teamColors_1_1.done && (_a = teamColors_1.return)) _a.call(teamColors_1);
|
|
265
|
-
}
|
|
266
|
-
finally { if (e_7) throw e_7.error; }
|
|
110
|
+
}
|
|
111
|
+
setupTechnologyBoard() {
|
|
112
|
+
const boards = ['S', 'U', 'N'];
|
|
113
|
+
for (let i = 0; i < boards.length; i++) {
|
|
114
|
+
const current = boards[i];
|
|
115
|
+
this.material(MaterialType.TechnologyBoard).createItem({ id: current, location: { type: LocationType.TechnologyBoardPlace, id: factions[i] } });
|
|
116
|
+
for (const color of teamColors) {
|
|
117
|
+
this.material(MaterialType.TechMarker).createItem({
|
|
118
|
+
id: color,
|
|
119
|
+
location: {
|
|
120
|
+
type: LocationType.TechnologyBoardTokenSpace,
|
|
121
|
+
parent: this.material(MaterialType.TechnologyBoard).id(current).getIndex(),
|
|
122
|
+
player: color,
|
|
123
|
+
x: 0
|
|
124
|
+
}
|
|
125
|
+
});
|
|
267
126
|
}
|
|
268
127
|
}
|
|
269
|
-
}
|
|
270
|
-
|
|
128
|
+
}
|
|
129
|
+
setupPlayer(deck, player) {
|
|
271
130
|
deck.deal({
|
|
272
|
-
type:
|
|
273
|
-
player
|
|
131
|
+
type: LocationType.PlayerHand,
|
|
132
|
+
player
|
|
274
133
|
}, 4);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
this.setupTeam(
|
|
278
|
-
this.setupTeam(
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
this.material(
|
|
282
|
-
id:
|
|
134
|
+
}
|
|
135
|
+
setupTeams() {
|
|
136
|
+
this.setupTeam(TeamColor.White);
|
|
137
|
+
this.setupTeam(TeamColor.Black);
|
|
138
|
+
}
|
|
139
|
+
setupTeam(team) {
|
|
140
|
+
this.material(MaterialType.CreditToken).createItem({
|
|
141
|
+
id: Credit.Credit1,
|
|
283
142
|
location: {
|
|
284
|
-
type:
|
|
143
|
+
type: LocationType.TeamCredit,
|
|
285
144
|
player: team
|
|
286
145
|
},
|
|
287
146
|
quantity: 4
|
|
288
147
|
});
|
|
289
|
-
this.material(
|
|
290
|
-
id:
|
|
148
|
+
this.material(MaterialType.CreditToken).createItem({
|
|
149
|
+
id: Credit.Credit3,
|
|
291
150
|
location: {
|
|
292
|
-
type:
|
|
151
|
+
type: LocationType.TeamCredit,
|
|
293
152
|
player: team
|
|
294
153
|
}
|
|
295
154
|
});
|
|
296
|
-
this.material(
|
|
297
|
-
id:
|
|
155
|
+
this.material(MaterialType.CreditToken).createItem({
|
|
156
|
+
id: Credit.Credit5,
|
|
298
157
|
location: {
|
|
299
|
-
type:
|
|
158
|
+
type: LocationType.TeamCredit,
|
|
300
159
|
player: team
|
|
301
160
|
}
|
|
302
161
|
});
|
|
303
|
-
this.material(
|
|
162
|
+
this.material(MaterialType.ZenithiumToken).createItem({
|
|
304
163
|
location: {
|
|
305
|
-
type:
|
|
164
|
+
type: LocationType.TeamZenithium,
|
|
306
165
|
player: team
|
|
307
166
|
}
|
|
308
167
|
});
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
this.memorize(
|
|
312
|
-
this.startSimultaneousRule(
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
}(rules_api_1.MaterialGameSetup));
|
|
316
|
-
exports.ZenithSetup = ZenithSetup;
|
|
168
|
+
}
|
|
169
|
+
start() {
|
|
170
|
+
this.memorize(Memory.TurnOrder, shuffle(this.game.players));
|
|
171
|
+
this.startSimultaneousRule(RuleId.Muligan);
|
|
172
|
+
}
|
|
173
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var ZenithRules_1 = require("./ZenithRules");
|
|
5
|
-
Object.defineProperty(exports, "ZenithRules", { enumerable: true, get: function () { return ZenithRules_1.ZenithRules; } });
|
|
6
|
-
var ZenithOptions_1 = require("./ZenithOptions");
|
|
7
|
-
Object.defineProperty(exports, "ZenithOptionsSpec", { enumerable: true, get: function () { return ZenithOptions_1.ZenithOptionsSpec; } });
|
|
8
|
-
var ZenithSetup_1 = require("./ZenithSetup");
|
|
9
|
-
Object.defineProperty(exports, "ZenithSetup", { enumerable: true, get: function () { return ZenithSetup_1.ZenithSetup; } });
|
|
1
|
+
export { ZenithRules } from './ZenithRules';
|
|
2
|
+
export { ZenithOptionsSpec } from './ZenithOptions';
|
|
3
|
+
export { ZenithSetup } from './ZenithSetup';
|
package/dist/material/Agent.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.agents = exports.Agent = void 0;
|
|
4
|
-
var rules_api_1 = require("@gamepark/rules-api");
|
|
5
|
-
var Agent;
|
|
1
|
+
import { getEnumValues } from '@gamepark/rules-api';
|
|
2
|
+
export var Agent;
|
|
6
3
|
(function (Agent) {
|
|
7
4
|
Agent[Agent["Elisabeth"] = 1] = "Elisabeth";
|
|
8
5
|
Agent[Agent["Pkd1ck"] = 2] = "Pkd1ck";
|
|
@@ -94,5 +91,5 @@ var Agent;
|
|
|
94
91
|
Agent[Agent["SecretKali"] = 88] = "SecretKali";
|
|
95
92
|
Agent[Agent["CaptainAndreev"] = 89] = "CaptainAndreev";
|
|
96
93
|
Agent[Agent["MiladyJones"] = 90] = "MiladyJones";
|
|
97
|
-
})(Agent || (
|
|
98
|
-
|
|
94
|
+
})(Agent || (Agent = {}));
|
|
95
|
+
export const agents = getEnumValues(Agent);
|