enefel 2.1.1 → 2.1.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.
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/dist/pitch.js +3 -2
- package/dist/types/models.d.ts +1 -0
- package/package.json +1 -1
- package/pitch.ts +4 -2
- package/types/models.ts +1 -0
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enefel",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "enefel",
|
|
9
|
-
"version": "2.1.
|
|
9
|
+
"version": "2.1.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"seedrandom": "3.0.5",
|
package/dist/package.json
CHANGED
package/dist/pitch.js
CHANGED
|
@@ -28,14 +28,15 @@ var TILES;
|
|
|
28
28
|
TILES["LATERALB2"] = "i";
|
|
29
29
|
TILES["NEUTRAL"] = "a";
|
|
30
30
|
})(TILES || (exports.TILES = TILES = {}));
|
|
31
|
+
const debugCoordinates = false;
|
|
31
32
|
function coordinatesConvertorY(y, isDev = false) {
|
|
32
|
-
if (isDev) {
|
|
33
|
+
if (debugCoordinates && isDev) {
|
|
33
34
|
return y;
|
|
34
35
|
}
|
|
35
36
|
return y < 0 ? y : String.fromCharCode(y + 65);
|
|
36
37
|
}
|
|
37
38
|
function coordinatesConvertorX(x, isDev = false) {
|
|
38
|
-
if (isDev) {
|
|
39
|
+
if (debugCoordinates && isDev) {
|
|
39
40
|
return x;
|
|
40
41
|
}
|
|
41
42
|
return x + 1;
|
package/dist/types/models.d.ts
CHANGED
package/package.json
CHANGED
package/pitch.ts
CHANGED
|
@@ -16,15 +16,17 @@ enum TILES {
|
|
|
16
16
|
NEUTRAL = "a",
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
const debugCoordinates = false;
|
|
20
|
+
|
|
19
21
|
function coordinatesConvertorY(y: number, isDev = false) {
|
|
20
|
-
if (isDev) {
|
|
22
|
+
if (debugCoordinates && isDev) {
|
|
21
23
|
return y;
|
|
22
24
|
}
|
|
23
25
|
return y < 0 ? y : String.fromCharCode(y + 65);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
function coordinatesConvertorX(x: number, isDev = false) {
|
|
27
|
-
if (isDev) {
|
|
29
|
+
if (debugCoordinates && isDev) {
|
|
28
30
|
return x;
|
|
29
31
|
}
|
|
30
32
|
return x + 1;
|
package/types/models.ts
CHANGED
|
@@ -123,6 +123,7 @@ export interface Player extends Point {
|
|
|
123
123
|
prevX: number | null; // add by Game
|
|
124
124
|
prevY: number | null; // add by Game
|
|
125
125
|
hasEndTurn: boolean; // add by Game
|
|
126
|
+
canUseMightyBlow?: boolean; // add by Game
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
export interface PlayerWithSkill extends Player {
|