enefel 1.0.168 → 1.0.169

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/career.js CHANGED
@@ -678,8 +678,8 @@ const CAREER = {
678
678
  ST: 5,
679
679
  AG: 1,
680
680
  AV: 9,
681
- normal: "GS",
682
- double: "AP",
681
+ normal: "S",
682
+ double: "AG",
683
683
  normalCoach: "G",
684
684
  icons: ["undead-mummies1"],
685
685
  skills: [
package/game.js CHANGED
@@ -18,6 +18,10 @@ const GAME_STATUS = {
18
18
  HALFTIME: 6,
19
19
  };
20
20
 
21
+ const isGameFinish = (game) => {
22
+ return game.status === GAME_STATUS.END || game.status === GAME_STATUS.FINISH;
23
+ };
24
+
21
25
  const hasGameCasualty = (game) => {
22
26
  return game.type !== GAME_TYPE.FRIENDLY;
23
27
  };
@@ -65,4 +69,5 @@ module.exports = {
65
69
  getGameFanBonus,
66
70
  hasGameCasualty,
67
71
  isGameFirstHalfTime,
72
+ isGameFinish,
68
73
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enefel",
3
- "version": "1.0.168",
3
+ "version": "1.0.169",
4
4
  "main": "index.js",
5
5
  "author": "Manest",
6
6
  "license": "MIT",
package/time.js CHANGED
@@ -46,8 +46,8 @@ const getTime = (type) => {
46
46
  // between each league games
47
47
  const TIME_BETWEEN_GAME_LEAGUE = TIME_GAME + 2 * 24 * 60 * 60;
48
48
 
49
- // 2 months, 30 days
50
- const TIME_SEASON_IF_NO_LEAGUE = 60 * 24 * 60 * 30;
49
+ // 2 months
50
+ const TIME_SEASON_IF_NO_LEAGUE = 60 * 24 * 60 * 30 * 2;
51
51
 
52
52
  switch (type) {
53
53
  case TYPE_TIMER.HALF_TIME_GAME: