@gamepark/mythologies 0.5.1 → 0.5.2

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.
@@ -6,7 +6,7 @@ type PlayerOptions = {
6
6
  };
7
7
  export type MythologiesOptions = {
8
8
  players: PlayerOptions[];
9
- mythologies?: Mythology[];
9
+ mythologies: Mythology[];
10
10
  };
11
11
  export declare const MythologiesOptionsSpec: OptionsSpec<MythologiesOptions>;
12
12
  export {};
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/mythologies",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
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.36.7",
23
+ "@gamepark/rules-api": ">=6.37",
24
24
  "lodash": ">=4.17"
25
25
  },
26
26
  "devDependencies": {
27
- "@gamepark/rules-api": "~6.36.7",
27
+ "@gamepark/rules-api": "~6.37.1",
28
28
  "@types/lodash": "^4.17.7",
29
29
  "i18next": "^22.0.3",
30
30
  "lodash": "^4.17.21"
31
31
  },
32
- "gitHead": "2a9168d4a7d37a2588e10d2f2e9794a2657a7d60"
32
+ "gitHead": "638142cd80f3a89d75046bc26dde32c3e0d8b6a7"
33
33
  }