enefel 1.0.131 → 1.0.133

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/index.js CHANGED
@@ -146,6 +146,7 @@ const GAME_HISTORY_INFO = {
146
146
  END_PO: "endpo",
147
147
  END_POP: "endpop",
148
148
  END_TURN: "et",
149
+ EXP: "exp",
149
150
  FOUL: "f",
150
151
  GO_FOR_IT: "gfi",
151
152
  HANDICAP: "handi",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enefel",
3
- "version": "1.0.131",
3
+ "version": "1.0.133",
4
4
  "main": "index.js",
5
5
  "author": "Manest",
6
6
  "license": "MIT",
package/pitch.js CHANGED
@@ -15,11 +15,17 @@ const TILES = {
15
15
  NEUTRAL: "a",
16
16
  };
17
17
 
18
- function coordinatesConvertorY(y) {
18
+ function coordinatesConvertorY(y, isDev = false) {
19
+ if (isDev) {
20
+ return y;
21
+ }
19
22
  return y < 0 ? y : String.fromCharCode(y + 65);
20
23
  }
21
24
 
22
- function coordinatesConvertorX(x) {
25
+ function coordinatesConvertorX(x, isDev = false) {
26
+ if (isDev) {
27
+ return x;
28
+ }
23
29
  return x + 1;
24
30
  }
25
31
 
package/player.js CHANGED
@@ -41,7 +41,7 @@ function gamesforAgingRoll(totalGames) {
41
41
  return AGING_SIZE_RANGE - (totalGames % AGING_SIZE_RANGE);
42
42
  }
43
43
 
44
- const AGING_INITIAL_BONUS = 4;
44
+ const AGING_INITIAL_BONUS = 5;
45
45
  const AGING_MIN_BONUS = -3;
46
46
 
47
47
  function getAgingBonus(player, totalGames) {
package/skill.js CHANGED
@@ -330,11 +330,23 @@ function getDisturbingPresenceMalus(player, players) {
330
330
  }
331
331
 
332
332
  const isSpecialSkill = (skill) => {
333
- skillId = skill.skill_id ? skill.skill_id : skill;
333
+ const skillId = skill.skill_id ? skill.skill_id : skill;
334
334
  return SKILLS[skillId] === SKILL_TYPE.SPECIAL;
335
335
  };
336
336
 
337
+ const helpSkillsToDisplay = {
338
+ [SKILL_NAMES.DODGE]: { actif: false, color: "#FFFF00" },
339
+ [SKILL_NAMES.GUARD]: { actif: false, color: "#555555" },
340
+ [SKILL_NAMES.BLOCK]: { actif: false, color: "#FF0000" },
341
+ [SKILL_NAMES.TACKLE]: { actif: false, color: "#f200ff" },
342
+ [SKILL_NAMES.DEFENSIVE]: { actif: false, color: "#0000FF" },
343
+ [SKILL_NAMES.DISTURBING_PRESENCE]: { actif: false, color: "#00FF44" },
344
+ [SKILL_NAMES.SHADOWING]: { actif: false, color: "#995500" },
345
+ [SKILL_NAMES.STAND_FIRM]: { actif: false, color: "#550099" },
346
+ };
347
+
337
348
  module.exports = {
349
+ helpSkillsToDisplay,
338
350
  BIG_GUY_LIMIT,
339
351
  getDisturbingPresenceMalus,
340
352
  getPlayersWithSkill,