@gamepark/mythologies 0.5.1 → 0.6.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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MythologiesOptionsSpec = void 0;
|
|
4
4
|
var rules_api_1 = require("@gamepark/rules-api");
|
|
5
|
+
var Mythology_1 = require("./material/Mythology");
|
|
5
6
|
var PlayerColor_1 = require("./PlayerColor");
|
|
6
7
|
exports.MythologiesOptionsSpec = {
|
|
7
8
|
players: {
|
|
@@ -10,5 +11,15 @@ exports.MythologiesOptionsSpec = {
|
|
|
10
11
|
values: (0, rules_api_1.getEnumValues)(PlayerColor_1.PlayerColor),
|
|
11
12
|
valueSpec: function (id) { return ({ label: function (t) { return t("player.".concat(id)); } }); }
|
|
12
13
|
}
|
|
14
|
+
},
|
|
15
|
+
mythologies: {
|
|
16
|
+
size: 4,
|
|
17
|
+
label: function (t) { return t('mythologies'); },
|
|
18
|
+
help: function (t) { return t('mythologies.help'); },
|
|
19
|
+
values: (0, rules_api_1.getEnumValues)(Mythology_1.Mythology),
|
|
20
|
+
valueSpec: function (mythology) { return ({
|
|
21
|
+
label: function (t) { return t("mythology.".concat(mythology)); }
|
|
22
|
+
}); },
|
|
23
|
+
competitiveDisabled: true
|
|
13
24
|
}
|
|
14
25
|
};
|
|
@@ -148,7 +148,7 @@ export declare class MythologiesRules extends SecretMaterialRules<PlayerColor, M
|
|
|
148
148
|
};
|
|
149
149
|
keepMoveSecret(move: MaterialMove): boolean;
|
|
150
150
|
isPlayerDestiny(move: MoveItem): boolean;
|
|
151
|
-
beforeItemMove(move: ItemMove):
|
|
151
|
+
beforeItemMove(move: ItemMove): MaterialMove<PlayerColor, MaterialType, LocationType, number>[];
|
|
152
152
|
protected onCustomMove(move: CustomMove): MaterialMove<number, number, number, number>[];
|
|
153
153
|
getAutomaticMoves(): MaterialMove<number, number, number, number>[];
|
|
154
154
|
startEffectsResolution(): MaterialMove<number, number, number, number>[];
|
package/dist/MythologiesRules.js
CHANGED
|
@@ -206,7 +206,7 @@ var MythologiesRules = (function (_super) {
|
|
|
206
206
|
new TriggerEffectsRule_1.TriggerEffectsRule(this.game).triggerEffects({ type: Effect_1.TriggerEventType.ColumnEvent, eventType: Effect_1.LineEventType.BonusGain, player: player, x: favor.x });
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
return
|
|
209
|
+
return _super.prototype.beforeItemMove.call(this, move);
|
|
210
210
|
};
|
|
211
211
|
MythologiesRules.prototype.onCustomMove = function (move) {
|
|
212
212
|
var _a;
|
|
@@ -229,7 +229,7 @@ var MythologiesRules = (function (_super) {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
return
|
|
232
|
+
return _super.prototype.onCustomMove.call(this, move);
|
|
233
233
|
};
|
|
234
234
|
MythologiesRules.prototype.getAutomaticMoves = function () {
|
|
235
235
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/mythologies",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "The rules of Mythologies adapted for Game Park",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"lint": "eslint --fix"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@gamepark/rules-api": ">=6.
|
|
23
|
+
"@gamepark/rules-api": ">=6.38",
|
|
24
24
|
"lodash": ">=4.17"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@gamepark/rules-api": "~6.
|
|
27
|
+
"@gamepark/rules-api": "~6.38.0",
|
|
28
28
|
"@types/lodash": "^4.17.7",
|
|
29
29
|
"i18next": "^22.0.3",
|
|
30
30
|
"lodash": "^4.17.21"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f76b0aacdbd5c018c996cbb4174953c54206539e"
|
|
33
33
|
}
|