enefel 1.0.139 → 1.0.140

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/.yarnrc ADDED
@@ -0,0 +1 @@
1
+ registry "https://registry.yarnpkg.com"
package/block.js CHANGED
@@ -1,7 +1,10 @@
1
1
  const { hasSkill, SKILL_NAMES } = require("./skill");
2
2
 
3
3
  function isFrenzyAvailable(player, defender) {
4
- if (hasSkill(defender, SKILL_NAMES.FEND)) {
4
+ if (
5
+ hasSkill(defender, SKILL_NAMES.FEND) &&
6
+ !hasSkill(player, SKILL_NAMES.JUGGERNAUT)
7
+ ) {
5
8
  return false;
6
9
  }
7
10
  return player.current_MA + player.current_gfi <= 1
@@ -0,0 +1,56 @@
1
+ const { isAdjacent } = require("enefel");
2
+ const { SKILL_NAMES } = require("enefel/skill");
3
+ const { hasStatusTacleZone, hasStatusFall } = require("enefel/status");
4
+ const { hasSkill } = require("enefel/skill");
5
+
6
+ function canUseFend(playerFrom, playerTo, isBlitz) {
7
+ if (!hasSkill(playerTo, SKILL_NAMES.FEND)) {
8
+ return false;
9
+ }
10
+ if (hasSkill(playerFrom, SKILL_NAMES.JUGGERNAUT) && isBlitz) {
11
+ return false;
12
+ }
13
+ return true;
14
+ }
15
+
16
+ function canUseStandFirm(playerFrom, playerTo, isBlitz) {
17
+ if (playerTo && !hasSkill(playerTo, SKILL_NAMES.STAND_FIRM)) {
18
+ return false;
19
+ }
20
+ if (playerFrom && hasSkill(playerFrom, SKILL_NAMES.JUGGERNAUT) && isBlitz) {
21
+ return false;
22
+ }
23
+ return true;
24
+ }
25
+
26
+ function canUseStandWrestle(playerFrom, playerTo, isBlitz) {
27
+ if (hasSkill(playerFrom, SKILL_NAMES.JUGGERNAUT) && isBlitz) {
28
+ return false;
29
+ }
30
+ if (
31
+ hasSkill(playerFrom, SKILL_NAMES.WRESTLE) ||
32
+ hasSkill(playerTo, SKILL_NAMES.WRESTLE)
33
+ ) {
34
+ return true;
35
+ }
36
+ return false;
37
+ }
38
+
39
+ function canUsePileDriver(playerFrom, playerTo) {
40
+ if (
41
+ hasSkill(playerFrom, SKILL_NAMES.PILE_DRIVER) &&
42
+ hasStatusTacleZone(playerFrom) &&
43
+ hasStatusFall(playerTo) &&
44
+ isAdjacent(playerFrom, playerTo)
45
+ ) {
46
+ return true;
47
+ }
48
+ return false;
49
+ }
50
+ const CanUseSkills = {
51
+ canUseFend,
52
+ canUseStandFirm,
53
+ canUseStandWrestle,
54
+ canUsePileDriver,
55
+ };
56
+ module.exports = CanUseSkills;
package/career.js CHANGED
@@ -118,7 +118,7 @@ const CAREER = {
118
118
  "snotling-troll": {
119
119
  MA: 4,
120
120
  ST: 5,
121
- AG: 2,
121
+ AG: 1,
122
122
  AV: 9,
123
123
  normal: "S",
124
124
  double: "AGP",
@@ -467,7 +467,7 @@ const CAREER = {
467
467
  "gobelin-troll": {
468
468
  MA: 4,
469
469
  ST: 5,
470
- AG: 2,
470
+ AG: 1,
471
471
  AV: 9,
472
472
  normal: "A",
473
473
  double: "GPS",
@@ -1010,6 +1010,7 @@ const CAREER = {
1010
1010
  SKILL_NAMES.BIG_GUY,
1011
1011
  [SKILL_NAMES.LONER, 4],
1012
1012
  SKILL_NAMES.MIGHTY_BLOW,
1013
+ SKILL_NAMES.PROJECTILE_VOMIT,
1013
1014
  SKILL_NAMES.REALLY_STUPID,
1014
1015
  SKILL_NAMES.REGENERATION,
1015
1016
  SKILL_NAMES.THROW_TEAM_MATE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enefel",
3
- "version": "1.0.139",
3
+ "version": "1.0.140",
4
4
  "main": "index.js",
5
5
  "author": "Manest",
6
6
  "license": "MIT",
package/yarn-error.log ADDED
@@ -0,0 +1,46 @@
1
+ Arguments:
2
+ C:\Program Files\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js
3
+
4
+ PATH:
5
+ C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\nodejs\;C:\Users\yoann\.windows-build-tools\python27\;C:\Users\yoann\AppData\Local\Microsoft\WindowsApps;C:\Users\yoann\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\yoann\AppData\Local\Yarn\bin;C:\Program Files\Docker Toolbox;C:\Program Files\Java\jdk1.8.0_221;C:\Users\yoann\AppData\Roaming\npm;C:\Program Files\heroku\bin
6
+
7
+ Yarn version:
8
+ 1.10.1
9
+
10
+ Node version:
11
+ 12.13.1
12
+
13
+ Platform:
14
+ win32 x64
15
+
16
+ Trace:
17
+ SyntaxError: Unknown token: { line: 1, col: 39, type: 'INVALID', value: undefined } 1:39 in C:\dev\e2\enefel\.yarnrc
18
+ at Parser.unexpected (C:\Program Files (x86)\Yarn\lib\cli.js:57347:11)
19
+ at Parser.parse (C:\Program Files (x86)\Yarn\lib\cli.js:57478:14)
20
+ at parse (C:\Program Files (x86)\Yarn\lib\cli.js:57549:17)
21
+ at module.exports.exports.default (C:\Program Files (x86)\Yarn\lib\cli.js:57113:96)
22
+ at YarnRegistry.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:82396:64)
23
+ at Generator.next (<anonymous>)
24
+ at step (C:\Program Files (x86)\Yarn\lib\cli.js:98:30)
25
+ at C:\Program Files (x86)\Yarn\lib\cli.js:109:13
26
+
27
+ npm manifest:
28
+ {
29
+ "name": "enefel",
30
+ "version": "1.0.1",
31
+ "main": "index.js",
32
+ "author": "Manest",
33
+ "license": "MIT",
34
+ "devDependencies": {
35
+ "jest": "^24.9.0"
36
+ },
37
+ "scripts": {
38
+ "test": "jest"
39
+ }
40
+ }
41
+
42
+ yarn manifest:
43
+ No manifest
44
+
45
+ Lockfile:
46
+ No lockfile