@gamepark/mythologies 0.10.0 → 0.12.0
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/CustomMoveType.d.ts +14 -14
- package/dist/CustomMoveType.js +11 -14
- package/dist/Memory.d.ts +14 -14
- package/dist/Memory.js +15 -18
- package/dist/MythologiesOptions.d.ts +12 -12
- package/dist/MythologiesOptions.js +22 -25
- package/dist/MythologiesRules.d.ts +160 -158
- package/dist/MythologiesRules.js +220 -244
- package/dist/MythologiesSetup.d.ts +17 -17
- package/dist/MythologiesSetup.js +84 -161
- package/dist/PlayerColor.d.ts +10 -10
- package/dist/PlayerColor.js +7 -10
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -9
- package/dist/material/Destiny.d.ts +15 -15
- package/dist/material/Destiny.js +91 -130
- package/dist/material/Entity.d.ts +102 -102
- package/dist/material/Entity.js +92 -99
- package/dist/material/LocationType.d.ts +28 -28
- package/dist/material/LocationType.js +29 -33
- package/dist/material/MaterialType.d.ts +13 -13
- package/dist/material/MaterialType.js +14 -17
- package/dist/material/Mythology.d.ts +18 -18
- package/dist/material/Mythology.js +16 -19
- package/dist/material/Pantheon.d.ts +50 -50
- package/dist/material/Pantheon.js +303 -484
- package/dist/material/Trial.d.ts +22 -22
- package/dist/material/Trial.js +139 -183
- package/dist/material/entity/AutoEffectRule.d.ts +11 -11
- package/dist/material/entity/AutoEffectRule.js +16 -49
- package/dist/material/entity/Effect.d.ts +130 -106
- package/dist/material/entity/Effect.js +32 -46
- package/dist/material/entity/EntityDescription.d.ts +13 -13
- package/dist/material/entity/EntityDescription.js +165 -170
- package/dist/material/entity/MoveEffectRule.d.ts +18 -18
- package/dist/material/entity/MoveEffectRule.js +73 -129
- package/dist/material/entity/PlaceCardEffectRule.d.ts +17 -15
- package/dist/material/entity/PlaceCardEffectRule.js +58 -78
- package/dist/material/entity/PlayerEffectRule.d.ts +14 -14
- package/dist/material/entity/PlayerEffectRule.js +36 -63
- package/dist/material/entity/SacrificeEffectRule.d.ts +11 -11
- package/dist/material/entity/SacrificeEffectRule.js +40 -64
- package/dist/material/entity/SimultaneousEffectRule.d.ts +18 -18
- package/dist/material/entity/SimultaneousEffectRule.js +64 -149
- package/dist/material/entity/SimultaneousMoveEffectRule.d.ts +17 -17
- package/dist/material/entity/SimultaneousMoveEffectRule.js +64 -141
- package/dist/material/entity/SimultaneousSacrificeEffectRule.d.ts +10 -10
- package/dist/material/entity/SimultaneousSacrificeEffectRule.js +31 -55
- package/dist/material/entity/celtic/Banshee.d.ts +2 -2
- package/dist/material/entity/celtic/Banshee.js +23 -46
- package/dist/material/entity/celtic/Brigid.d.ts +2 -2
- package/dist/material/entity/celtic/Brigid.js +17 -40
- package/dist/material/entity/celtic/Cernunnos.d.ts +2 -2
- package/dist/material/entity/celtic/Cernunnos.js +19 -43
- package/dist/material/entity/celtic/Dagda.d.ts +2 -2
- package/dist/material/entity/celtic/Dagda.js +26 -50
- package/dist/material/entity/celtic/Dullahan.d.ts +2 -2
- package/dist/material/entity/celtic/Dullahan.js +9 -12
- package/dist/material/entity/celtic/Fairy.d.ts +2 -2
- package/dist/material/entity/celtic/Fairy.js +9 -12
- package/dist/material/entity/celtic/Kelpie.d.ts +2 -2
- package/dist/material/entity/celtic/Kelpie.js +16 -39
- package/dist/material/entity/celtic/Leprechaun.d.ts +2 -2
- package/dist/material/entity/celtic/Leprechaun.js +9 -12
- package/dist/material/entity/celtic/Morrigan.d.ts +2 -2
- package/dist/material/entity/celtic/Morrigan.js +8 -11
- package/dist/material/entity/celtic/Selkie.d.ts +2 -2
- package/dist/material/entity/celtic/Selkie.js +14 -17
- package/dist/material/entity/chinese/ChangE.d.ts +2 -2
- package/dist/material/entity/chinese/ChangE.js +6 -9
- package/dist/material/entity/chinese/Fenghuang.d.ts +2 -2
- package/dist/material/entity/chinese/Fenghuang.js +10 -15
- package/dist/material/entity/chinese/Jiangshi.d.ts +2 -2
- package/dist/material/entity/chinese/Jiangshi.js +9 -12
- package/dist/material/entity/chinese/Mogwai.d.ts +2 -2
- package/dist/material/entity/chinese/Mogwai.js +18 -44
- package/dist/material/entity/chinese/Nian.d.ts +2 -2
- package/dist/material/entity/chinese/Nian.js +19 -42
- package/dist/material/entity/chinese/Nuwa.d.ts +2 -2
- package/dist/material/entity/chinese/Nuwa.js +9 -12
- package/dist/material/entity/chinese/Qilin.d.ts +2 -2
- package/dist/material/entity/chinese/Qilin.js +9 -12
- package/dist/material/entity/chinese/SunWukong.d.ts +2 -2
- package/dist/material/entity/chinese/SunWukong.js +17 -43
- package/dist/material/entity/chinese/Tianlong.d.ts +2 -2
- package/dist/material/entity/chinese/Tianlong.js +9 -12
- package/dist/material/entity/chinese/YanluoWang.d.ts +2 -2
- package/dist/material/entity/chinese/YanluoWang.js +9 -12
- package/dist/material/entity/egyptian/Ammit.d.ts +2 -2
- package/dist/material/entity/egyptian/Ammit.js +9 -12
- package/dist/material/entity/egyptian/Anubis.d.ts +2 -2
- package/dist/material/entity/egyptian/Anubis.js +9 -12
- package/dist/material/entity/egyptian/Beetle.d.ts +2 -2
- package/dist/material/entity/egyptian/Beetle.js +20 -43
- package/dist/material/entity/egyptian/Bennu.d.ts +2 -2
- package/dist/material/entity/egyptian/Bennu.js +9 -12
- package/dist/material/entity/egyptian/Cobra.d.ts +2 -2
- package/dist/material/entity/egyptian/Cobra.js +9 -12
- package/dist/material/entity/egyptian/Isis.d.ts +2 -2
- package/dist/material/entity/egyptian/Isis.js +15 -41
- package/dist/material/entity/egyptian/Mummy.d.ts +2 -2
- package/dist/material/entity/egyptian/Mummy.js +17 -40
- package/dist/material/entity/egyptian/Osiris.d.ts +2 -2
- package/dist/material/entity/egyptian/Osiris.js +24 -72
- package/dist/material/entity/egyptian/Ra.d.ts +2 -2
- package/dist/material/entity/egyptian/Ra.js +9 -12
- package/dist/material/entity/egyptian/Sphinx.d.ts +2 -2
- package/dist/material/entity/egyptian/Sphinx.js +9 -12
- package/dist/material/entity/greek/Athena.d.ts +2 -2
- package/dist/material/entity/greek/Athena.js +9 -12
- package/dist/material/entity/greek/Centaur.d.ts +2 -2
- package/dist/material/entity/greek/Centaur.js +9 -12
- package/dist/material/entity/greek/Chimera.d.ts +2 -2
- package/dist/material/entity/greek/Chimera.js +9 -12
- package/dist/material/entity/greek/Cyclops.d.ts +2 -2
- package/dist/material/entity/greek/Cyclops.js +15 -19
- package/dist/material/entity/greek/Gorgon.d.ts +2 -2
- package/dist/material/entity/greek/Gorgon.js +9 -12
- package/dist/material/entity/greek/Griffin.d.ts +2 -2
- package/dist/material/entity/greek/Griffin.js +9 -12
- package/dist/material/entity/greek/Hades.d.ts +2 -2
- package/dist/material/entity/greek/Hades.js +9 -12
- package/dist/material/entity/greek/Minotaur.d.ts +2 -2
- package/dist/material/entity/greek/Minotaur.js +9 -12
- package/dist/material/entity/greek/Poseidon.d.ts +2 -2
- package/dist/material/entity/greek/Poseidon.js +20 -46
- package/dist/material/entity/greek/Zeus.d.ts +2 -2
- package/dist/material/entity/greek/Zeus.js +17 -40
- package/dist/material/entity/hindu/Asura.d.ts +2 -2
- package/dist/material/entity/hindu/Asura.js +19 -67
- package/dist/material/entity/hindu/Brahma.d.ts +2 -2
- package/dist/material/entity/hindu/Brahma.js +14 -37
- package/dist/material/entity/hindu/Ganesh.d.ts +2 -2
- package/dist/material/entity/hindu/Ganesh.js +18 -41
- package/dist/material/entity/hindu/Garuda.d.ts +2 -2
- package/dist/material/entity/hindu/Garuda.js +9 -12
- package/dist/material/entity/hindu/Kinnara.d.ts +2 -2
- package/dist/material/entity/hindu/Kinnara.js +9 -12
- package/dist/material/entity/hindu/Naga.d.ts +2 -2
- package/dist/material/entity/hindu/Naga.js +29 -75
- package/dist/material/entity/hindu/Rakshasa.d.ts +2 -2
- package/dist/material/entity/hindu/Rakshasa.js +9 -12
- package/dist/material/entity/hindu/Shiva.d.ts +2 -2
- package/dist/material/entity/hindu/Shiva.js +9 -12
- package/dist/material/entity/hindu/Vetala.d.ts +2 -2
- package/dist/material/entity/hindu/Vetala.js +9 -12
- package/dist/material/entity/hindu/Vishnu.d.ts +2 -2
- package/dist/material/entity/hindu/Vishnu.js +9 -68
- package/dist/material/entity/inca/Amaru.d.ts +2 -2
- package/dist/material/entity/inca/Amaru.js +15 -38
- package/dist/material/entity/inca/Caiman.d.ts +2 -2
- package/dist/material/entity/inca/Caiman.js +9 -12
- package/dist/material/entity/inca/Condor.d.ts +2 -2
- package/dist/material/entity/inca/Condor.js +9 -12
- package/dist/material/entity/inca/Illapa.d.ts +2 -2
- package/dist/material/entity/inca/Illapa.js +9 -12
- package/dist/material/entity/inca/Inti.d.ts +2 -2
- package/dist/material/entity/inca/Inti.js +16 -39
- package/dist/material/entity/inca/MamaQucha.d.ts +2 -2
- package/dist/material/entity/inca/MamaQucha.js +20 -43
- package/dist/material/entity/inca/Puma.d.ts +2 -2
- package/dist/material/entity/inca/Puma.js +14 -40
- package/dist/material/entity/inca/Supay.d.ts +2 -2
- package/dist/material/entity/inca/Supay.js +9 -12
- package/dist/material/entity/inca/Ukuku.d.ts +2 -2
- package/dist/material/entity/inca/Ukuku.js +14 -18
- package/dist/material/entity/inca/Viracocha.d.ts +2 -2
- package/dist/material/entity/inca/Viracocha.js +9 -12
- package/dist/material/entity/norse/Alf.d.ts +2 -2
- package/dist/material/entity/norse/Alf.js +9 -12
- package/dist/material/entity/norse/Draugr.d.ts +2 -2
- package/dist/material/entity/norse/Draugr.js +9 -12
- package/dist/material/entity/norse/Fenrir.d.ts +2 -2
- package/dist/material/entity/norse/Fenrir.js +9 -12
- package/dist/material/entity/norse/Freya.d.ts +2 -2
- package/dist/material/entity/norse/Freya.js +17 -40
- package/dist/material/entity/norse/Jotunn.d.ts +2 -2
- package/dist/material/entity/norse/Jotunn.js +15 -38
- package/dist/material/entity/norse/Loki.d.ts +2 -2
- package/dist/material/entity/norse/Loki.js +14 -37
- package/dist/material/entity/norse/Odin.d.ts +2 -2
- package/dist/material/entity/norse/Odin.js +3 -6
- package/dist/material/entity/norse/Thor.d.ts +2 -2
- package/dist/material/entity/norse/Thor.js +9 -12
- package/dist/material/entity/norse/Troll.d.ts +2 -2
- package/dist/material/entity/norse/Troll.js +6 -9
- package/dist/material/entity/norse/Valkyrie.d.ts +2 -2
- package/dist/material/entity/norse/Valkyrie.js +27 -73
- package/dist/material/entity/zulu/Idlozi.d.ts +2 -2
- package/dist/material/entity/zulu/Idlozi.js +9 -12
- package/dist/material/entity/zulu/Impundulu.d.ts +2 -2
- package/dist/material/entity/zulu/Impundulu.js +9 -12
- package/dist/material/entity/zulu/Inkanyamba.d.ts +2 -2
- package/dist/material/entity/zulu/Inkanyamba.js +16 -42
- package/dist/material/entity/zulu/Inkosazana.d.ts +2 -2
- package/dist/material/entity/zulu/Inkosazana.js +9 -12
- package/dist/material/entity/zulu/Shembe.d.ts +2 -2
- package/dist/material/entity/zulu/Shembe.js +19 -44
- package/dist/material/entity/zulu/Tokoloshe.d.ts +2 -2
- package/dist/material/entity/zulu/Tokoloshe.js +24 -47
- package/dist/material/entity/zulu/Umvelinqangi.d.ts +2 -2
- package/dist/material/entity/zulu/Umvelinqangi.js +22 -45
- package/dist/material/entity/zulu/Unkulunkulu.d.ts +2 -2
- package/dist/material/entity/zulu/Unkulunkulu.js +20 -43
- package/dist/material/entity/zulu/Unwabu.d.ts +2 -2
- package/dist/material/entity/zulu/Unwabu.js +25 -49
- package/dist/material/entity/zulu/Werehyena.d.ts +2 -2
- package/dist/material/entity/zulu/Werehyena.js +9 -12
- package/dist/rules/ChooseDraftTokenRule.d.ts +15 -15
- package/dist/rules/ChooseDraftTokenRule.js +54 -103
- package/dist/rules/DrawDestinyCardRule.d.ts +7 -7
- package/dist/rules/DrawDestinyCardRule.js +44 -115
- package/dist/rules/EndGameRule.d.ts +5 -5
- package/dist/rules/EndGameRule.js +34 -105
- package/dist/rules/PlaceCardsRule.d.ts +14 -14
- package/dist/rules/PlaceCardsRule.js +107 -206
- package/dist/rules/PlaceTokenRule.d.ts +12 -12
- package/dist/rules/PlaceTokenRule.js +75 -151
- package/dist/rules/RuleId.d.ts +66 -65
- package/dist/rules/RuleId.js +67 -69
- package/dist/rules/UpkeepRule.d.ts +9 -9
- package/dist/rules/UpkeepRule.js +56 -154
- package/dist/rules/effects/AlfEffectRule.d.ts +10 -10
- package/dist/rules/effects/AlfEffectRule.js +33 -59
- package/dist/rules/effects/AmmitEffectRule.d.ts +6 -6
- package/dist/rules/effects/AmmitEffectRule.js +15 -40
- package/dist/rules/effects/AnubisEffectRule.d.ts +9 -9
- package/dist/rules/effects/AnubisEffectRule.js +14 -49
- package/dist/rules/effects/AthenaEffectRule.d.ts +10 -10
- package/dist/rules/effects/AthenaEffectRule.js +48 -150
- package/dist/rules/effects/BennuEffectRule.d.ts +6 -6
- package/dist/rules/effects/BennuEffectRule.js +10 -35
- package/dist/rules/effects/CaimanEffectRule.d.ts +7 -7
- package/dist/rules/effects/CaimanEffectRule.js +23 -72
- package/dist/rules/effects/CentaurEffectRule.d.ts +15 -15
- package/dist/rules/effects/CentaurEffectRule.js +33 -95
- package/dist/rules/effects/ChimeraEffectRule.d.ts +8 -8
- package/dist/rules/effects/ChimeraEffectRule.js +15 -40
- package/dist/rules/effects/CobraEffectRule.d.ts +13 -13
- package/dist/rules/effects/CobraEffectRule.js +30 -61
- package/dist/rules/effects/CondorEffectRule.d.ts +8 -8
- package/dist/rules/effects/CondorEffectRule.js +20 -45
- package/dist/rules/effects/CyclopsEffectRule.d.ts +11 -11
- package/dist/rules/effects/CyclopsEffectRule.js +50 -106
- package/dist/rules/effects/DraugrEffectRule.d.ts +11 -11
- package/dist/rules/effects/DraugrEffectRule.js +32 -58
- package/dist/rules/effects/DullahanEffectRule.d.ts +11 -11
- package/dist/rules/effects/DullahanEffectRule.js +48 -73
- package/dist/rules/effects/FairyEffectRule.d.ts +10 -10
- package/dist/rules/effects/FairyEffectRule.js +33 -55
- package/dist/rules/effects/FenghuangEffectRule.d.ts +8 -8
- package/dist/rules/effects/FenghuangEffectRule.js +18 -48
- package/dist/rules/effects/FenrirEffectRule.d.ts +16 -16
- package/dist/rules/effects/FenrirEffectRule.js +85 -139
- package/dist/rules/effects/GarudaEffectRule.d.ts +16 -16
- package/dist/rules/effects/GarudaEffectRule.js +55 -113
- package/dist/rules/effects/GorgonEffectRule.d.ts +7 -7
- package/dist/rules/effects/GorgonEffectRule.js +15 -40
- package/dist/rules/effects/GriffinEffectRule.d.ts +9 -9
- package/dist/rules/effects/GriffinEffectRule.js +16 -41
- package/dist/rules/effects/HadesEffectRule.d.ts +9 -9
- package/dist/rules/effects/HadesEffectRule.js +14 -39
- package/dist/rules/effects/IdloziEffectRule.d.ts +9 -9
- package/dist/rules/effects/IdloziEffectRule.js +21 -46
- package/dist/rules/effects/IllapaEffectRule.d.ts +16 -16
- package/dist/rules/effects/IllapaEffectRule.js +43 -76
- package/dist/rules/effects/ImpunduluEffectRule.d.ts +10 -10
- package/dist/rules/effects/ImpunduluEffectRule.js +39 -77
- package/dist/rules/effects/InkosazanaEffectRule.d.ts +7 -7
- package/dist/rules/effects/InkosazanaEffectRule.js +11 -46
- package/dist/rules/effects/JiangshiEffectRule.d.ts +8 -8
- package/dist/rules/effects/JiangshiEffectRule.js +25 -51
- package/dist/rules/effects/KinnaraEffectRule.d.ts +13 -13
- package/dist/rules/effects/KinnaraEffectRule.js +42 -95
- package/dist/rules/effects/LeprechaunEffectRule.d.ts +9 -9
- package/dist/rules/effects/LeprechaunEffectRule.js +23 -49
- package/dist/rules/effects/MinotaurEffectRule.d.ts +11 -11
- package/dist/rules/effects/MinotaurEffectRule.js +23 -49
- package/dist/rules/effects/MultipleSimultaneousMoveEffectRule.d.ts +15 -14
- package/dist/rules/effects/MultipleSimultaneousMoveEffectRule.js +96 -144
- package/dist/rules/effects/NuwaEffectRule.d.ts +14 -14
- package/dist/rules/effects/NuwaEffectRule.js +57 -106
- package/dist/rules/effects/OdinEffectRule.d.ts +11 -11
- package/dist/rules/effects/OdinEffectRule.js +27 -52
- package/dist/rules/effects/PermanentEffectsRule.d.ts +7 -7
- package/dist/rules/effects/PermanentEffectsRule.js +21 -54
- package/dist/rules/effects/QilinEffectRule.d.ts +8 -8
- package/dist/rules/effects/QilinEffectRule.js +40 -115
- package/dist/rules/effects/RaEffectRule.d.ts +9 -9
- package/dist/rules/effects/RaEffectRule.js +14 -39
- package/dist/rules/effects/RakshasaEffectRule.d.ts +13 -13
- package/dist/rules/effects/RakshasaEffectRule.js +23 -48
- package/dist/rules/effects/ResolveEffectsRule.d.ts +15 -12
- package/dist/rules/effects/ResolveEffectsRule.js +154 -141
- package/dist/rules/effects/SelkieEffectRule.d.ts +8 -8
- package/dist/rules/effects/SelkieEffectRule.js +19 -44
- package/dist/rules/effects/ShivaEffectRule.d.ts +10 -10
- package/dist/rules/effects/ShivaEffectRule.js +35 -61
- package/dist/rules/effects/SphinxEffectRule.d.ts +10 -10
- package/dist/rules/effects/SphinxEffectRule.js +33 -58
- package/dist/rules/effects/SupayEffectRule.d.ts +20 -20
- package/dist/rules/effects/SupayEffectRule.js +44 -81
- package/dist/rules/effects/ThorEffectRule.d.ts +11 -11
- package/dist/rules/effects/ThorEffectRule.js +32 -58
- package/dist/rules/effects/TianlongEffectRule.d.ts +17 -17
- package/dist/rules/effects/TianlongEffectRule.js +47 -105
- package/dist/rules/effects/TriggerEffectsRule.d.ts +12 -11
- package/dist/rules/effects/TriggerEffectsRule.js +67 -183
- package/dist/rules/effects/UkukuEffectRule.d.ts +14 -14
- package/dist/rules/effects/UkukuEffectRule.js +35 -66
- package/dist/rules/effects/VetalaEffectRule.d.ts +12 -12
- package/dist/rules/effects/VetalaEffectRule.js +37 -62
- package/dist/rules/effects/ViracochaEffectRule.d.ts +7 -7
- package/dist/rules/effects/ViracochaEffectRule.js +15 -40
- package/dist/rules/effects/VishnuEffectRule.d.ts +10 -0
- package/dist/rules/effects/VishnuEffectRule.js +44 -0
- package/dist/rules/effects/WerehyenaEffectRule.d.ts +8 -8
- package/dist/rules/effects/WerehyenaEffectRule.js +37 -98
- package/dist/rules/effects/YanluoWangEffectRule.d.ts +9 -9
- package/dist/rules/effects/YanluoWangEffectRule.js +46 -104
- package/package.json +7 -8
package/dist/rules/UpkeepRule.js
CHANGED
|
@@ -1,154 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
next: function () {
|
|
58
|
-
if (o && i >= o.length) o = void 0;
|
|
59
|
-
return { value: o && o[i++], done: !o };
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
63
|
-
};
|
|
64
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
-
exports.UpkeepRule = void 0;
|
|
66
|
-
var rules_api_1 = require("@gamepark/rules-api");
|
|
67
|
-
var Entity_1 = require("../material/Entity");
|
|
68
|
-
var LocationType_1 = require("../material/LocationType");
|
|
69
|
-
var MaterialType_1 = require("../material/MaterialType");
|
|
70
|
-
var Pantheon_1 = require("../material/Pantheon");
|
|
71
|
-
var Memory_1 = require("../Memory");
|
|
72
|
-
var RuleId_1 = require("./RuleId");
|
|
73
|
-
var UpkeepRule = (function (_super) {
|
|
74
|
-
__extends(UpkeepRule, _super);
|
|
75
|
-
function UpkeepRule() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
UpkeepRule.prototype.onRuleStart = function () {
|
|
79
|
-
var e_1, _a;
|
|
80
|
-
this.forget(Memory_1.Memory.OncePerTurn);
|
|
81
|
-
var moves = [
|
|
82
|
-
this.material(MaterialType_1.MaterialType.RoundToken).moveItem(function (item) { return (__assign(__assign({}, item.location), { id: item.location.id + 1 })); }),
|
|
83
|
-
this.material(MaterialType_1.MaterialType.FirstPlayerToken).moveItem({ type: LocationType_1.LocationType.FirstPlayerTokenSpot, player: this.nextPlayer })
|
|
84
|
-
];
|
|
85
|
-
moves.push.apply(moves, __spreadArray([], __read(this.completeSanctuary()), false));
|
|
86
|
-
try {
|
|
87
|
-
for (var _b = __values(this.game.players), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
88
|
-
var player = _c.value;
|
|
89
|
-
moves.push(this.material(MaterialType_1.MaterialType.DraftToken).location(LocationType_1.LocationType.PlayerHand).player(player).shuffle());
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
93
|
-
finally {
|
|
94
|
-
try {
|
|
95
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
96
|
-
}
|
|
97
|
-
finally { if (e_1) throw e_1.error; }
|
|
98
|
-
}
|
|
99
|
-
moves.push(this.material(MaterialType_1.MaterialType.DestinyCard).location(LocationType_1.LocationType.CurrentDestiny).moveItemsAtOnce({ type: LocationType_1.LocationType.DestinyDeck }));
|
|
100
|
-
moves.push(this.nextRule);
|
|
101
|
-
return moves;
|
|
102
|
-
};
|
|
103
|
-
UpkeepRule.prototype.completeSanctuary = function (loki) {
|
|
104
|
-
var e_2, _a;
|
|
105
|
-
var moves = [];
|
|
106
|
-
var mythologyBoards = this.material(MaterialType_1.MaterialType.MythologyBoard);
|
|
107
|
-
try {
|
|
108
|
-
for (var _b = __values(mythologyBoards.getIndexes()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
109
|
-
var index = _c.value;
|
|
110
|
-
var mythology = mythologyBoards.getItem(index).id.mythology;
|
|
111
|
-
var godOnBoard = this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.SanctuaryGodSpot).parent(index).length;
|
|
112
|
-
if (!godOnBoard) {
|
|
113
|
-
var deck = this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.GodsDeck).locationId(mythology).deck();
|
|
114
|
-
moves.push(deck.dealOne({ type: LocationType_1.LocationType.SanctuaryGodSpot, parent: index, rotation: loki }));
|
|
115
|
-
}
|
|
116
|
-
var creaturesOnBoard = this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.SanctuaryCreatureSpot).parent(index).length;
|
|
117
|
-
if (creaturesOnBoard < 3) {
|
|
118
|
-
var deck = this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.CreaturesDeck).locationId(mythology).deck();
|
|
119
|
-
moves.push.apply(moves, __spreadArray([], __read(deck.deal({ type: LocationType_1.LocationType.SanctuaryCreatureSpot, parent: index, rotation: loki }, 3 - creaturesOnBoard)), false));
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
124
|
-
finally {
|
|
125
|
-
try {
|
|
126
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
127
|
-
}
|
|
128
|
-
finally { if (e_2) throw e_2.error; }
|
|
129
|
-
}
|
|
130
|
-
return moves;
|
|
131
|
-
};
|
|
132
|
-
UpkeepRule.prototype.afterItemMove = function (move) {
|
|
133
|
-
if ((0, rules_api_1.isMoveItemTypeAtOnce)(MaterialType_1.MaterialType.DestinyCard)(move)) {
|
|
134
|
-
return [this.material(MaterialType_1.MaterialType.DestinyCard).shuffle()];
|
|
135
|
-
}
|
|
136
|
-
return [];
|
|
137
|
-
};
|
|
138
|
-
Object.defineProperty(UpkeepRule.prototype, "nextRule", {
|
|
139
|
-
get: function () {
|
|
140
|
-
var _this = this;
|
|
141
|
-
var odinOwner = this.game.players.find(function (player) { return new Pantheon_1.Pantheon(_this.game, player).hasEntity(Entity_1.Entity.Odin); });
|
|
142
|
-
if (odinOwner) {
|
|
143
|
-
return this.startPlayerTurn(RuleId_1.RuleId.OdinEffect, odinOwner);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
return this.startRule(RuleId_1.RuleId.DrawDestinyCard);
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
enumerable: false,
|
|
150
|
-
configurable: true
|
|
151
|
-
});
|
|
152
|
-
return UpkeepRule;
|
|
153
|
-
}(rules_api_1.PlayerTurnRule));
|
|
154
|
-
exports.UpkeepRule = UpkeepRule;
|
|
1
|
+
import { isMoveItemTypeAtOnce, PlayerTurnRule } from '@gamepark/rules-api';
|
|
2
|
+
import { Entity } from '../material/Entity';
|
|
3
|
+
import { LocationType } from '../material/LocationType';
|
|
4
|
+
import { MaterialType } from '../material/MaterialType';
|
|
5
|
+
import { Pantheon } from '../material/Pantheon';
|
|
6
|
+
import { Memory } from '../Memory';
|
|
7
|
+
import { RuleId } from './RuleId';
|
|
8
|
+
export class UpkeepRule extends PlayerTurnRule {
|
|
9
|
+
onRuleStart() {
|
|
10
|
+
this.forget(Memory.OncePerTurn);
|
|
11
|
+
const moves = [
|
|
12
|
+
this.material(MaterialType.RoundToken).moveItem((item) => ({ ...item.location, id: item.location.id + 1 })),
|
|
13
|
+
this.material(MaterialType.FirstPlayerToken).moveItem({ type: LocationType.FirstPlayerTokenSpot, player: this.nextPlayer })
|
|
14
|
+
];
|
|
15
|
+
moves.push(...this.completeSanctuary());
|
|
16
|
+
for (const player of this.game.players) {
|
|
17
|
+
moves.push(this.material(MaterialType.DraftToken).location(LocationType.PlayerHand).player(player).shuffle());
|
|
18
|
+
}
|
|
19
|
+
moves.push(this.material(MaterialType.DestinyCard).location(LocationType.CurrentDestiny).moveItemsAtOnce({ type: LocationType.DestinyDeck }));
|
|
20
|
+
moves.push(this.nextRule);
|
|
21
|
+
return moves;
|
|
22
|
+
}
|
|
23
|
+
completeSanctuary(loki) {
|
|
24
|
+
const moves = [];
|
|
25
|
+
const mythologyBoards = this.material(MaterialType.MythologyBoard);
|
|
26
|
+
for (const index of mythologyBoards.getIndexes()) {
|
|
27
|
+
const mythology = mythologyBoards.getItem(index).id.mythology;
|
|
28
|
+
const godOnBoard = this.material(MaterialType.EntityCard).location(LocationType.SanctuaryGodSpot).parent(index).length;
|
|
29
|
+
if (!godOnBoard) {
|
|
30
|
+
const deck = this.material(MaterialType.EntityCard).location(LocationType.GodsDeck).locationId(mythology).deck();
|
|
31
|
+
moves.push(deck.dealOne({ type: LocationType.SanctuaryGodSpot, parent: index, rotation: loki }));
|
|
32
|
+
}
|
|
33
|
+
const creaturesOnBoard = this.material(MaterialType.EntityCard).location(LocationType.SanctuaryCreatureSpot).parent(index).length;
|
|
34
|
+
if (creaturesOnBoard < 3) {
|
|
35
|
+
const deck = this.material(MaterialType.EntityCard).location(LocationType.CreaturesDeck).locationId(mythology).deck();
|
|
36
|
+
moves.push(...deck.deal({ type: LocationType.SanctuaryCreatureSpot, parent: index, rotation: loki }, 3 - creaturesOnBoard));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return moves;
|
|
40
|
+
}
|
|
41
|
+
afterItemMove(move) {
|
|
42
|
+
if (isMoveItemTypeAtOnce(MaterialType.DestinyCard)(move)) {
|
|
43
|
+
return [this.material(MaterialType.DestinyCard).shuffle()];
|
|
44
|
+
}
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
get nextRule() {
|
|
48
|
+
const odinOwner = this.game.players.find((player) => new Pantheon(this.game, player).hasEntity(Entity.Odin));
|
|
49
|
+
if (odinOwner) {
|
|
50
|
+
return this.startPlayerTurn(RuleId.OdinEffect, odinOwner);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return this.startRule(RuleId.DrawDestinyCard);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Material, XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
-
import { MoveEffectRule } from '../../material/entity/MoveEffectRule';
|
|
3
|
-
import { RuleId } from '../RuleId';
|
|
4
|
-
export declare class AlfEffectRule extends MoveEffectRule {
|
|
5
|
-
ruleId: RuleId;
|
|
6
|
-
canPlayEffect(cardIndex: number): boolean;
|
|
7
|
-
getMovingCards(alfIndex?: number): Material;
|
|
8
|
-
getAvailableDestinations(): XYCoordinates[];
|
|
9
|
-
getFreeDiagonals(alfIndex?: number): XYCoordinates[];
|
|
10
|
-
}
|
|
1
|
+
import { Material, XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
+
import { MoveEffectRule } from '../../material/entity/MoveEffectRule';
|
|
3
|
+
import { RuleId } from '../RuleId';
|
|
4
|
+
export declare class AlfEffectRule extends MoveEffectRule {
|
|
5
|
+
ruleId: RuleId;
|
|
6
|
+
canPlayEffect(cardIndex: number): boolean;
|
|
7
|
+
getMovingCards(alfIndex?: number): Material;
|
|
8
|
+
getAvailableDestinations(): XYCoordinates[];
|
|
9
|
+
getFreeDiagonals(alfIndex?: number): XYCoordinates[];
|
|
10
|
+
}
|
|
@@ -1,59 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
AlfEffectRule.prototype.getMovingCards = function (alfIndex) {
|
|
35
|
-
if (alfIndex === void 0) { alfIndex = this.getEffect().cardIndex; }
|
|
36
|
-
return _super.prototype.getMovingCards.call(this, alfIndex)
|
|
37
|
-
.id(function (id) { return (0, Entity_1.isCreature)(id.front); })
|
|
38
|
-
.index(function (index) { return index !== alfIndex; });
|
|
39
|
-
};
|
|
40
|
-
AlfEffectRule.prototype.getAvailableDestinations = function () {
|
|
41
|
-
return this.getFreeDiagonals();
|
|
42
|
-
};
|
|
43
|
-
AlfEffectRule.prototype.getFreeDiagonals = function (alfIndex) {
|
|
44
|
-
if (alfIndex === void 0) { alfIndex = this.getEffect().cardIndex; }
|
|
45
|
-
var freeDiagonals = [];
|
|
46
|
-
var grid = new Pantheon_1.Pantheon(this.game, this.player).grid;
|
|
47
|
-
var alf = this.material(MaterialType_1.MaterialType.EntityCard).getItem(alfIndex).location;
|
|
48
|
-
for (var y = 0; y < 3; y++) {
|
|
49
|
-
for (var x = 0; x < 3; x++) {
|
|
50
|
-
if (!grid[y][x] && Math.abs(alf.x - x) === Math.abs(alf.y - y)) {
|
|
51
|
-
freeDiagonals.push({ x: x, y: y });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return freeDiagonals;
|
|
56
|
-
};
|
|
57
|
-
return AlfEffectRule;
|
|
58
|
-
}(MoveEffectRule_1.MoveEffectRule));
|
|
59
|
-
exports.AlfEffectRule = AlfEffectRule;
|
|
1
|
+
import { isCreature } from '../../material/Entity';
|
|
2
|
+
import { MoveEffectRule } from '../../material/entity/MoveEffectRule';
|
|
3
|
+
import { MaterialType } from '../../material/MaterialType';
|
|
4
|
+
import { Pantheon } from '../../material/Pantheon';
|
|
5
|
+
import { RuleId } from '../RuleId';
|
|
6
|
+
export class AlfEffectRule extends MoveEffectRule {
|
|
7
|
+
ruleId = RuleId.AlfEffect;
|
|
8
|
+
canPlayEffect(cardIndex) {
|
|
9
|
+
return this.getCardsAbleToMove(cardIndex).length > 0 && this.getFreeDiagonals(cardIndex).length > 0;
|
|
10
|
+
}
|
|
11
|
+
getMovingCards(alfIndex = this.getEffect().cardIndex) {
|
|
12
|
+
return super
|
|
13
|
+
.getMovingCards(alfIndex)
|
|
14
|
+
.id((id) => isCreature(id.front))
|
|
15
|
+
.index((index) => index !== alfIndex);
|
|
16
|
+
}
|
|
17
|
+
getAvailableDestinations() {
|
|
18
|
+
return this.getFreeDiagonals();
|
|
19
|
+
}
|
|
20
|
+
getFreeDiagonals(alfIndex = this.getEffect().cardIndex) {
|
|
21
|
+
const freeDiagonals = [];
|
|
22
|
+
const grid = new Pantheon(this.game, this.player).grid;
|
|
23
|
+
const alf = this.material(MaterialType.EntityCard).getItem(alfIndex).location;
|
|
24
|
+
for (let y = 0; y < 3; y++) {
|
|
25
|
+
for (let x = 0; x < 3; x++) {
|
|
26
|
+
if (!grid[y][x] && Math.abs(alf.x - x) === Math.abs(alf.y - y)) {
|
|
27
|
+
freeDiagonals.push({ x, y });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return freeDiagonals;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
2
|
-
import { RuleId } from '../RuleId';
|
|
3
|
-
export declare class AmmitEffectRule extends InvokeEffectRule {
|
|
4
|
-
ruleId: RuleId;
|
|
5
|
-
getCardsToPlace(): import("@gamepark/rules-api").Material<number, number, number>;
|
|
6
|
-
}
|
|
1
|
+
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
2
|
+
import { RuleId } from '../RuleId';
|
|
3
|
+
export declare class AmmitEffectRule extends InvokeEffectRule {
|
|
4
|
+
ruleId: RuleId;
|
|
5
|
+
getCardsToPlace(): import("@gamepark/rules-api").Material<number, number, number>;
|
|
6
|
+
}
|
|
@@ -1,40 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AmmitEffectRule = void 0;
|
|
19
|
-
var Entity_1 = require("../../material/Entity");
|
|
20
|
-
var PlaceCardEffectRule_1 = require("../../material/entity/PlaceCardEffectRule");
|
|
21
|
-
var LocationType_1 = require("../../material/LocationType");
|
|
22
|
-
var MaterialType_1 = require("../../material/MaterialType");
|
|
23
|
-
var Pantheon_1 = require("../../material/Pantheon");
|
|
24
|
-
var RuleId_1 = require("../RuleId");
|
|
25
|
-
var AmmitEffectRule = (function (_super) {
|
|
26
|
-
__extends(AmmitEffectRule, _super);
|
|
27
|
-
function AmmitEffectRule() {
|
|
28
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
_this.ruleId = RuleId_1.RuleId.AmmitEffect;
|
|
30
|
-
return _this;
|
|
31
|
-
}
|
|
32
|
-
AmmitEffectRule.prototype.getCardsToPlace = function () {
|
|
33
|
-
var mythologies = new Pantheon_1.Pantheon(this.game, this.player).missingMythologies;
|
|
34
|
-
return this.material(MaterialType_1.MaterialType.EntityCard)
|
|
35
|
-
.location(LocationType_1.LocationType.PlayerDiscard)
|
|
36
|
-
.id(function (id) { return mythologies.includes((0, Entity_1.entityMythology)(id.front)); });
|
|
37
|
-
};
|
|
38
|
-
return AmmitEffectRule;
|
|
39
|
-
}(PlaceCardEffectRule_1.InvokeEffectRule));
|
|
40
|
-
exports.AmmitEffectRule = AmmitEffectRule;
|
|
1
|
+
import { entityMythology } from '../../material/Entity';
|
|
2
|
+
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
3
|
+
import { LocationType } from '../../material/LocationType';
|
|
4
|
+
import { MaterialType } from '../../material/MaterialType';
|
|
5
|
+
import { Pantheon } from '../../material/Pantheon';
|
|
6
|
+
import { RuleId } from '../RuleId';
|
|
7
|
+
export class AmmitEffectRule extends InvokeEffectRule {
|
|
8
|
+
ruleId = RuleId.AmmitEffect;
|
|
9
|
+
getCardsToPlace() {
|
|
10
|
+
const mythologies = new Pantheon(this.game, this.player).missingMythologies;
|
|
11
|
+
return this.material(MaterialType.EntityCard)
|
|
12
|
+
.location(LocationType.PlayerDiscard)
|
|
13
|
+
.id((id) => mythologies.includes(entityMythology(id.front)));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Material } from '@gamepark/rules-api';
|
|
2
|
-
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
3
|
-
import { RuleId } from '../RuleId';
|
|
4
|
-
export declare class AnubisEffectRule extends InvokeEffectRule {
|
|
5
|
-
ruleId: RuleId;
|
|
6
|
-
|
|
7
|
-
getCardsToPlace(): Material;
|
|
8
|
-
getAvailableDestinations(): import("@gamepark/rules-api").XYCoordinates[];
|
|
9
|
-
}
|
|
1
|
+
import { Material } from '@gamepark/rules-api';
|
|
2
|
+
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
3
|
+
import { RuleId } from '../RuleId';
|
|
4
|
+
export declare class AnubisEffectRule extends InvokeEffectRule {
|
|
5
|
+
ruleId: RuleId;
|
|
6
|
+
times: number;
|
|
7
|
+
getCardsToPlace(): Material;
|
|
8
|
+
getAvailableDestinations(): import("@gamepark/rules-api").XYCoordinates[];
|
|
9
|
+
}
|
|
@@ -1,49 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AnubisEffectRule = void 0;
|
|
19
|
-
var PlaceCardEffectRule_1 = require("../../material/entity/PlaceCardEffectRule");
|
|
20
|
-
var LocationType_1 = require("../../material/LocationType");
|
|
21
|
-
var MaterialType_1 = require("../../material/MaterialType");
|
|
22
|
-
var Memory_1 = require("../../Memory");
|
|
23
|
-
var RuleId_1 = require("../RuleId");
|
|
24
|
-
var AnubisEffectRule = (function (_super) {
|
|
25
|
-
__extends(AnubisEffectRule, _super);
|
|
26
|
-
function AnubisEffectRule() {
|
|
27
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
-
_this.ruleId = RuleId_1.RuleId.AnubisEffect;
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
AnubisEffectRule.prototype.onRuleStart = function () {
|
|
32
|
-
if (!this.remind(Memory_1.Memory.EffectCount)) {
|
|
33
|
-
this.remind(Memory_1.Memory.PendingEffects).unshift([this.getEffect()]);
|
|
34
|
-
this.memorize(Memory_1.Memory.EffectCount, true);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
this.forget(Memory_1.Memory.EffectCount);
|
|
38
|
-
}
|
|
39
|
-
return _super.prototype.onRuleStart.call(this);
|
|
40
|
-
};
|
|
41
|
-
AnubisEffectRule.prototype.getCardsToPlace = function () {
|
|
42
|
-
return this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.PlayerDiscard);
|
|
43
|
-
};
|
|
44
|
-
AnubisEffectRule.prototype.getAvailableDestinations = function () {
|
|
45
|
-
return _super.prototype.getAvailableDestinations.call(this).filter(function (space) { return space.y === 2; });
|
|
46
|
-
};
|
|
47
|
-
return AnubisEffectRule;
|
|
48
|
-
}(PlaceCardEffectRule_1.InvokeEffectRule));
|
|
49
|
-
exports.AnubisEffectRule = AnubisEffectRule;
|
|
1
|
+
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
2
|
+
import { LocationType } from '../../material/LocationType';
|
|
3
|
+
import { MaterialType } from '../../material/MaterialType';
|
|
4
|
+
import { RuleId } from '../RuleId';
|
|
5
|
+
export class AnubisEffectRule extends InvokeEffectRule {
|
|
6
|
+
ruleId = RuleId.AnubisEffect;
|
|
7
|
+
times = 2;
|
|
8
|
+
getCardsToPlace() {
|
|
9
|
+
return this.material(MaterialType.EntityCard).location(LocationType.PlayerDiscard);
|
|
10
|
+
}
|
|
11
|
+
getAvailableDestinations() {
|
|
12
|
+
return super.getAvailableDestinations().filter((space) => space.y === 2);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MaterialMove } from '@gamepark/rules-api';
|
|
2
|
-
import { PlayerEffectRule } from '../../material/entity/PlayerEffectRule';
|
|
3
|
-
import { RuleId } from '../RuleId';
|
|
4
|
-
export declare class AthenaEffectRule extends PlayerEffectRule {
|
|
5
|
-
ruleId: RuleId;
|
|
6
|
-
onRuleStart(): MaterialMove
|
|
7
|
-
getPlayerMoves(): MaterialMove[];
|
|
8
|
-
onEndEffect(): MaterialMove
|
|
9
|
-
onRuleEnd(): never[];
|
|
10
|
-
}
|
|
1
|
+
import { MaterialMove } from '@gamepark/rules-api';
|
|
2
|
+
import { PlayerEffectRule } from '../../material/entity/PlayerEffectRule';
|
|
3
|
+
import { RuleId } from '../RuleId';
|
|
4
|
+
export declare class AthenaEffectRule extends PlayerEffectRule {
|
|
5
|
+
ruleId: RuleId;
|
|
6
|
+
onRuleStart(): MaterialMove[];
|
|
7
|
+
getPlayerMoves(): MaterialMove[];
|
|
8
|
+
onEndEffect(): MaterialMove[];
|
|
9
|
+
onRuleEnd(): never[];
|
|
10
|
+
}
|