@gamepark/skyrift 0.2.0 → 0.2.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/SkyriftRules.js +1 -3
- package/dist/SkyriftSetup.js +1 -0
- package/dist/material/decks/heathblade/OzmaTheMage.js +6 -5
- package/dist/material/decks/heathblade/SoulBladeEffectRule.js +1 -1
- package/dist/material/decks/highwave/ScallywagEffectRule.js +3 -0
- package/package.json +2 -3
- package/LICENCE.md +0 -108
package/dist/SkyriftRules.js
CHANGED
|
@@ -99,9 +99,7 @@ export class SkyriftRules extends SecretMaterialRules {
|
|
|
99
99
|
const origin = this.material(MaterialType.Card).getItem(move.itemIndex).location;
|
|
100
100
|
if (origin.type === LocationType.PlayArea && move.location.type !== LocationType.PlayArea) {
|
|
101
101
|
const cardRule = new PlayerHelper(this.game).getCardRule(move.itemIndex);
|
|
102
|
-
|
|
103
|
-
moves.push(...cardRule.onLeave());
|
|
104
|
-
}
|
|
102
|
+
moves.push(...cardRule.onLeave());
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
return moves;
|
package/dist/SkyriftSetup.js
CHANGED
|
@@ -32,6 +32,7 @@ export class SkyriftSetup extends MaterialGameSetup {
|
|
|
32
32
|
}));
|
|
33
33
|
this.material(MaterialType.Card).createItemsAtOnce(shuffle(cards));
|
|
34
34
|
this.material(MaterialType.Card).player(player).deck().deal({ type: LocationType.PlayerHand, player }, 6);
|
|
35
|
+
this.memorize(Memory.CardsPlayed, [], player);
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
start() {
|
|
@@ -12,12 +12,13 @@ class OzmaTheMageRule extends CardRule {
|
|
|
12
12
|
return [];
|
|
13
13
|
}
|
|
14
14
|
onLeave() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
if (this.isStunned()) {
|
|
16
|
+
return super.onLeave();
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
const powerTokens = this.material(MaterialType.PowerToken).location(LocationType.CardPowerTokens).parent(this.index);
|
|
20
|
+
return [powerTokens.moveItem({ type: LocationType.PlayerStash, player: this.player }, powerTokens.getQuantity())];
|
|
19
21
|
}
|
|
20
|
-
return moves;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
export const OzmaTheMage = {
|
|
@@ -10,6 +10,6 @@ export class SoulBladeEffectRule extends DestroyEffectRule {
|
|
|
10
10
|
return this.material(MaterialType.Card)
|
|
11
11
|
.location(LocationType.PlayArea)
|
|
12
12
|
.id((id) => cardProperties[id.front].type === CardType.Creature)
|
|
13
|
-
.index((index) => helper.getCardRule(index).getPower()
|
|
13
|
+
.index((index) => helper.getCardRule(index).getPower() >= 4);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DestroyEffectRule } from '../../../rules/DestroyEffectRule';
|
|
2
2
|
import { PlayerHelper } from '../../../rules/PlayerHelper';
|
|
3
|
+
import { cardProperties } from '../../CardProperties';
|
|
4
|
+
import { CardType } from '../../CardType';
|
|
3
5
|
import { LocationType } from '../../LocationType';
|
|
4
6
|
import { MaterialType } from '../../MaterialType';
|
|
5
7
|
export class ScallywagEffectRule extends DestroyEffectRule {
|
|
@@ -8,6 +10,7 @@ export class ScallywagEffectRule extends DestroyEffectRule {
|
|
|
8
10
|
const scallywagPower = this.cardRule.getPower();
|
|
9
11
|
return this.material(MaterialType.Card)
|
|
10
12
|
.location(LocationType.PlayArea)
|
|
13
|
+
.id((id) => cardProperties[id.front].type === CardType.Creature)
|
|
11
14
|
.index((index) => helper.getCardRule(index).getPower() < scallywagPower);
|
|
12
15
|
}
|
|
13
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamepark/skyrift",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The rules of SkyRift adapted for Game Park",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -29,6 +29,5 @@
|
|
|
29
29
|
"@gamepark/rules-api": "~7.2.0",
|
|
30
30
|
"es-toolkit": "^1.43.0",
|
|
31
31
|
"vitest": "^4.0.15"
|
|
32
|
-
}
|
|
33
|
-
"gitHead": "176b2503bdbd91bd1cf868fcc0e8b42a44770256"
|
|
32
|
+
}
|
|
34
33
|
}
|
package/LICENCE.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
Game Park Source Available License (Non-Commercial)
|
|
2
|
-
|
|
3
|
-
Version 1.0
|
|
4
|
-
|
|
5
|
-
Copyright (c) Game Park
|
|
6
|
-
All rights reserved.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
1. Definitions
|
|
10
|
-
|
|
11
|
-
"Software" means the source code contained in this repository, excluding any Assets
|
|
12
|
-
as defined below.
|
|
13
|
-
|
|
14
|
-
"Game Park" means the entity operating the Game Park platform and owning this
|
|
15
|
-
repository.
|
|
16
|
-
|
|
17
|
-
"Commercial Use" means any use of the Software that is intended for, or results in,
|
|
18
|
-
direct or indirect commercial advantage or monetary compensation, including but not
|
|
19
|
-
limited to:
|
|
20
|
-
- offering the Software or a derivative work as part of a paid product or service,
|
|
21
|
-
- offering the Software as a hosted or SaaS service,
|
|
22
|
-
- selling licenses, subscriptions, or access to the Software,
|
|
23
|
-
- using the Software to generate advertising, sponsorship, or similar revenue.
|
|
24
|
-
|
|
25
|
-
"Internal Non-Recreational Use" means use of the Software solely for internal purposes
|
|
26
|
-
such as evaluation, development, testing, research, education, or operational support,
|
|
27
|
-
and not for entertainment, gaming, or recreational use by end users.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
2. Grant of Rights
|
|
31
|
-
|
|
32
|
-
Subject to the terms of this License, Game Park hereby grants you a non-exclusive,
|
|
33
|
-
worldwide, royalty-free right to:
|
|
34
|
-
|
|
35
|
-
- view, copy, and modify the Software,
|
|
36
|
-
- fork the repository,
|
|
37
|
-
- use the Software for Internal Non-Recreational Use only,
|
|
38
|
-
- submit contributions to the Software.
|
|
39
|
-
|
|
40
|
-
All rights not expressly granted in this License are reserved by Game Park.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
3. Restrictions
|
|
44
|
-
|
|
45
|
-
You may NOT, without prior written permission from Game Park:
|
|
46
|
-
|
|
47
|
-
- use the Software for any Commercial Use,
|
|
48
|
-
- offer the Software or a derivative work to end users for recreational or gaming
|
|
49
|
-
purposes,
|
|
50
|
-
- distribute, sublicense, or make the Software available as part of a product or
|
|
51
|
-
service intended for public use,
|
|
52
|
-
- remove or alter any copyright, license, or attribution notices.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
4. Contributions
|
|
56
|
-
|
|
57
|
-
By submitting a contribution to this repository, you agree that:
|
|
58
|
-
|
|
59
|
-
- your contribution is provided under the terms of this License,
|
|
60
|
-
- Game Park may use, modify, relicense, and commercially exploit your contribution
|
|
61
|
-
without restriction,
|
|
62
|
-
- you represent that you have the right to grant these permissions.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
5. Assets and Images (Explicit Exclusion)
|
|
66
|
-
|
|
67
|
-
This License does NOT apply to any images, illustrations, game boards, cards, icons,
|
|
68
|
-
logos, or other visual or audio assets included in this repository ("Assets").
|
|
69
|
-
|
|
70
|
-
All Assets remain the exclusive property of their respective rights holders.
|
|
71
|
-
You may not copy, modify, redistribute, or use these Assets for any purpose without
|
|
72
|
-
explicit permission from the applicable rights holder.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
6. No Trademark License
|
|
76
|
-
|
|
77
|
-
This License does not grant any rights to use the name "Game Park", its logos, or any
|
|
78
|
-
other trademarks or brand identifiers of Game Park.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
7. Disclaimer of Warranty
|
|
82
|
-
|
|
83
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
84
|
-
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
85
|
-
PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
8. Limitation of Liability
|
|
89
|
-
|
|
90
|
-
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL GAME PARK BE LIABLE
|
|
91
|
-
FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR
|
|
92
|
-
OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
93
|
-
DEALINGS IN THE SOFTWARE.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
9. Termination
|
|
97
|
-
|
|
98
|
-
Any violation of this License will automatically terminate your rights under this
|
|
99
|
-
License. Upon termination, you must cease all use of the Software and destroy any
|
|
100
|
-
copies in your possession.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
10. Contact for Commercial Licensing
|
|
104
|
-
|
|
105
|
-
For commercial use, licensing inquiries, or permissions not covered by this License,
|
|
106
|
-
please contact:
|
|
107
|
-
|
|
108
|
-
contact@game-park.com
|