@gamepark/mythologies 1.0.10 → 1.0.12
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.
|
@@ -11,6 +11,7 @@ export declare class SupayEffectRule extends PlayerEffectRule {
|
|
|
11
11
|
getPlayerMoves(): MaterialMove[];
|
|
12
12
|
beforeItemMove(move: ItemMove): MaterialMove[];
|
|
13
13
|
afterItemMove(move: ItemMove): MaterialMove<number, number, number, number>[];
|
|
14
|
+
onEndEffect(): MaterialMove[];
|
|
14
15
|
}
|
|
15
16
|
export declare class SupaySacrificeRule extends SacrificeEffectRule {
|
|
16
17
|
getCardsToSacrifice(): Material;
|
|
@@ -31,6 +31,10 @@ export class SupayEffectRule extends PlayerEffectRule {
|
|
|
31
31
|
afterItemMove(move) {
|
|
32
32
|
return this.getRules().flatMap((rule) => rule.afterItemMove(move));
|
|
33
33
|
}
|
|
34
|
+
onEndEffect() {
|
|
35
|
+
new Pantheon(this.game, this.player).updateGrid();
|
|
36
|
+
return super.onEndEffect();
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
export class SupaySacrificeRule extends SacrificeEffectRule {
|
|
36
40
|
getCardsToSacrifice() {
|
|
@@ -22,7 +22,7 @@ export class TianlongEffectRule extends MoveEffectRule {
|
|
|
22
22
|
{ x: move.location.x, y: move.location.y }
|
|
23
23
|
]);
|
|
24
24
|
const opponentsEffectRule = new TianlongOpponentsEffectRule(this.game);
|
|
25
|
-
return [new Pantheon(this.game, this.player).spendGems(1), ...opponentsEffectRule.playEffect()];
|
|
25
|
+
return [new Pantheon(this.game, this.player).spendGems(1), ...opponentsEffectRule.playEffect(), this.customMove(CustomMoveType.EndEffect)];
|
|
26
26
|
}
|
|
27
27
|
return [];
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/mythologies",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "The rules of Mythologies adapted for Game Park",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@gamepark/rules-api": "~7.2.0",
|
|
29
29
|
"es-toolkit": "^1.44.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "b325d88e9bcaa5c96bcf5cdb8b44892c9efd4931"
|
|
32
32
|
}
|