@gamepark/mythologies 0.10.0 → 0.11.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 +158 -158
- package/dist/MythologiesRules.js +216 -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 +294 -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 +106 -106
- package/dist/material/entity/Effect.js +26 -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 +15 -15
- package/dist/material/entity/PlaceCardEffectRule.js +43 -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 +65 -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 +20 -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 +65 -65
- package/dist/rules/RuleId.js +66 -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 +24 -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 +36 -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 +21 -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 +14 -14
- package/dist/rules/effects/MultipleSimultaneousMoveEffectRule.js +71 -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 +12 -12
- package/dist/rules/effects/ResolveEffectsRule.js +87 -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 +11 -11
- package/dist/rules/effects/TriggerEffectsRule.js +65 -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/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
|
@@ -1,170 +1,165 @@
|
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
_a[Entity_1.Entity.Fairy] = Fairy_1.Fairy,
|
|
167
|
-
_a[Entity_1.Entity.Leprechaun] = Leprechaun_1.Leprechaun,
|
|
168
|
-
_a[Entity_1.Entity.Selkie] = Selkie_1.Selkie,
|
|
169
|
-
_a[Entity_1.Entity.Dullahan] = Dullahan_1.Dullahan,
|
|
170
|
-
_a);
|
|
1
|
+
import { Entity } from '../Entity';
|
|
2
|
+
import { Banshee } from './celtic/Banshee';
|
|
3
|
+
import { Brigid } from './celtic/Brigid';
|
|
4
|
+
import { Cernunnos } from './celtic/Cernunnos';
|
|
5
|
+
import { Dagda } from './celtic/Dagda';
|
|
6
|
+
import { Fairy } from './celtic/Fairy';
|
|
7
|
+
import { Dullahan } from './celtic/Dullahan';
|
|
8
|
+
import { Kelpie } from './celtic/Kelpie';
|
|
9
|
+
import { Leprechaun } from './celtic/Leprechaun';
|
|
10
|
+
import { Morrigan } from './celtic/Morrigan';
|
|
11
|
+
import { Selkie } from './celtic/Selkie';
|
|
12
|
+
import { ChangE } from './chinese/ChangE';
|
|
13
|
+
import { Fenghuang } from './chinese/Fenghuang';
|
|
14
|
+
import { Jiangshi } from './chinese/Jiangshi';
|
|
15
|
+
import { Mogwai } from './chinese/Mogwai';
|
|
16
|
+
import { Nian } from './chinese/Nian';
|
|
17
|
+
import { Nuwa } from './chinese/Nuwa';
|
|
18
|
+
import { Qilin } from './chinese/Qilin';
|
|
19
|
+
import { SunWukong } from './chinese/SunWukong';
|
|
20
|
+
import { Tianlong } from './chinese/Tianlong';
|
|
21
|
+
import { YanluoWang } from './chinese/YanluoWang';
|
|
22
|
+
import { Anubis } from './egyptian/Anubis';
|
|
23
|
+
import { Ammit } from './egyptian/Ammit';
|
|
24
|
+
import { Beetle } from './egyptian/Beetle';
|
|
25
|
+
import { Bennu } from './egyptian/Bennu';
|
|
26
|
+
import { Cobra } from './egyptian/Cobra';
|
|
27
|
+
import { Isis } from './egyptian/Isis';
|
|
28
|
+
import { Mummy } from './egyptian/Mummy';
|
|
29
|
+
import { Osiris } from './egyptian/Osiris';
|
|
30
|
+
import { Ra } from './egyptian/Ra';
|
|
31
|
+
import { Sphinx } from './egyptian/Sphinx';
|
|
32
|
+
import { Athena } from './greek/Athena';
|
|
33
|
+
import { Centaur } from './greek/Centaur';
|
|
34
|
+
import { Chimera } from './greek/Chimera';
|
|
35
|
+
import { Cyclops } from './greek/Cyclops';
|
|
36
|
+
import { Gorgon } from './greek/Gorgon';
|
|
37
|
+
import { Griffin } from './greek/Griffin';
|
|
38
|
+
import { Hades } from './greek/Hades';
|
|
39
|
+
import { Minotaur } from './greek/Minotaur';
|
|
40
|
+
import { Poseidon } from './greek/Poseidon';
|
|
41
|
+
import { Zeus } from './greek/Zeus';
|
|
42
|
+
import { Asura } from './hindu/Asura';
|
|
43
|
+
import { Brahma } from './hindu/Brahma';
|
|
44
|
+
import { Ganesh } from './hindu/Ganesh';
|
|
45
|
+
import { Garuda } from './hindu/Garuda';
|
|
46
|
+
import { Kinnara } from './hindu/Kinnara';
|
|
47
|
+
import { Naga } from './hindu/Naga';
|
|
48
|
+
import { Rakshasa } from './hindu/Rakshasa';
|
|
49
|
+
import { Shiva } from './hindu/Shiva';
|
|
50
|
+
import { Vetala } from './hindu/Vetala';
|
|
51
|
+
import { Vishnu } from './hindu/Vishnu';
|
|
52
|
+
import { Amaru } from './inca/Amaru';
|
|
53
|
+
import { Caiman } from './inca/Caiman';
|
|
54
|
+
import { Condor } from './inca/Condor';
|
|
55
|
+
import { Illapa } from './inca/Illapa';
|
|
56
|
+
import { Inti } from './inca/Inti';
|
|
57
|
+
import { MamaQucha } from './inca/MamaQucha';
|
|
58
|
+
import { Puma } from './inca/Puma';
|
|
59
|
+
import { Supay } from './inca/Supay';
|
|
60
|
+
import { Ukuku } from './inca/Ukuku';
|
|
61
|
+
import { Viracocha } from './inca/Viracocha';
|
|
62
|
+
import { Alf } from './norse/Alf';
|
|
63
|
+
import { Draugr } from './norse/Draugr';
|
|
64
|
+
import { Fenrir } from './norse/Fenrir';
|
|
65
|
+
import { Freya } from './norse/Freya';
|
|
66
|
+
import { Jotunn } from './norse/Jotunn';
|
|
67
|
+
import { Loki } from './norse/Loki';
|
|
68
|
+
import { Odin } from './norse/Odin';
|
|
69
|
+
import { Thor } from './norse/Thor';
|
|
70
|
+
import { Troll } from './norse/Troll';
|
|
71
|
+
import { Valkyrie } from './norse/Valkyrie';
|
|
72
|
+
import { Idlozi } from './zulu/Idlozi';
|
|
73
|
+
import { Impundulu } from './zulu/Impundulu';
|
|
74
|
+
import { Inkanyamba } from './zulu/Inkanyamba';
|
|
75
|
+
import { Inkosazana } from './zulu/Inkosazana';
|
|
76
|
+
import { Shembe } from './zulu/Shembe';
|
|
77
|
+
import { Tokoloshe } from './zulu/Tokoloshe';
|
|
78
|
+
import { Umvelinqangi } from './zulu/Umvelinqangi';
|
|
79
|
+
import { Unkulunkulu } from './zulu/Unkulunkulu';
|
|
80
|
+
import { Unwabu } from './zulu/Unwabu';
|
|
81
|
+
import { Werehyena } from './zulu/Werehyena';
|
|
82
|
+
export const getEffects = (entity) => (entity ? getDescriptionEffects(entities[entity]) : []);
|
|
83
|
+
const getDescriptionEffects = (description) => (description.effect ? [description.effect] : (description.effects ?? []));
|
|
84
|
+
export const entities = {
|
|
85
|
+
[Entity.Zeus]: Zeus,
|
|
86
|
+
[Entity.Poseidon]: Poseidon,
|
|
87
|
+
[Entity.Athena]: Athena,
|
|
88
|
+
[Entity.Hades]: Hades,
|
|
89
|
+
[Entity.Minotaur]: Minotaur,
|
|
90
|
+
[Entity.Centaur]: Centaur,
|
|
91
|
+
[Entity.Gorgon]: Gorgon,
|
|
92
|
+
[Entity.Cyclops]: Cyclops,
|
|
93
|
+
[Entity.Griffin]: Griffin,
|
|
94
|
+
[Entity.Chimera]: Chimera,
|
|
95
|
+
[Entity.Odin]: Odin,
|
|
96
|
+
[Entity.Thor]: Thor,
|
|
97
|
+
[Entity.Loki]: Loki,
|
|
98
|
+
[Entity.Freya]: Freya,
|
|
99
|
+
[Entity.Draugr]: Draugr,
|
|
100
|
+
[Entity.Jotunn]: Jotunn,
|
|
101
|
+
[Entity.Valkyrie]: Valkyrie,
|
|
102
|
+
[Entity.Troll]: Troll,
|
|
103
|
+
[Entity.Fenrir]: Fenrir,
|
|
104
|
+
[Entity.Alf]: Alf,
|
|
105
|
+
[Entity.Ra]: Ra,
|
|
106
|
+
[Entity.Osiris]: Osiris,
|
|
107
|
+
[Entity.Anubis]: Anubis,
|
|
108
|
+
[Entity.Isis]: Isis,
|
|
109
|
+
[Entity.Beetle]: Beetle,
|
|
110
|
+
[Entity.Mummy]: Mummy,
|
|
111
|
+
[Entity.Sphinx]: Sphinx,
|
|
112
|
+
[Entity.Cobra]: Cobra,
|
|
113
|
+
[Entity.Ammit]: Ammit,
|
|
114
|
+
[Entity.Bennu]: Bennu,
|
|
115
|
+
[Entity.Brahma]: Brahma,
|
|
116
|
+
[Entity.Vishnu]: Vishnu,
|
|
117
|
+
[Entity.Shiva]: Shiva,
|
|
118
|
+
[Entity.Ganesh]: Ganesh,
|
|
119
|
+
[Entity.Asura]: Asura,
|
|
120
|
+
[Entity.Naga]: Naga,
|
|
121
|
+
[Entity.Rakshasa]: Rakshasa,
|
|
122
|
+
[Entity.Garuda]: Garuda,
|
|
123
|
+
[Entity.Vetala]: Vetala,
|
|
124
|
+
[Entity.Kinnara]: Kinnara,
|
|
125
|
+
[Entity.Viracocha]: Viracocha,
|
|
126
|
+
[Entity.MamaQucha]: MamaQucha,
|
|
127
|
+
[Entity.Illapa]: Illapa,
|
|
128
|
+
[Entity.Inti]: Inti,
|
|
129
|
+
[Entity.Puma]: Puma,
|
|
130
|
+
[Entity.Amaru]: Amaru,
|
|
131
|
+
[Entity.Caiman]: Caiman,
|
|
132
|
+
[Entity.Condor]: Condor,
|
|
133
|
+
[Entity.Supay]: Supay,
|
|
134
|
+
[Entity.Ukuku]: Ukuku,
|
|
135
|
+
[Entity.YanluoWang]: YanluoWang,
|
|
136
|
+
[Entity.SunWukong]: SunWukong,
|
|
137
|
+
[Entity.Nuwa]: Nuwa,
|
|
138
|
+
[Entity.ChangE]: ChangE,
|
|
139
|
+
[Entity.Tianlong]: Tianlong,
|
|
140
|
+
[Entity.Qilin]: Qilin,
|
|
141
|
+
[Entity.Fenghuang]: Fenghuang,
|
|
142
|
+
[Entity.Mogwai]: Mogwai,
|
|
143
|
+
[Entity.Jiangshi]: Jiangshi,
|
|
144
|
+
[Entity.Nian]: Nian,
|
|
145
|
+
[Entity.Unkulunkulu]: Unkulunkulu,
|
|
146
|
+
[Entity.Inkosazana]: Inkosazana,
|
|
147
|
+
[Entity.Shembe]: Shembe,
|
|
148
|
+
[Entity.Umvelinqangi]: Umvelinqangi,
|
|
149
|
+
[Entity.Inkanyamba]: Inkanyamba,
|
|
150
|
+
[Entity.Unwabu]: Unwabu,
|
|
151
|
+
[Entity.Tokoloshe]: Tokoloshe,
|
|
152
|
+
[Entity.Impundulu]: Impundulu,
|
|
153
|
+
[Entity.Werehyena]: Werehyena,
|
|
154
|
+
[Entity.Idlozi]: Idlozi,
|
|
155
|
+
[Entity.Dagda]: Dagda,
|
|
156
|
+
[Entity.Brigid]: Brigid,
|
|
157
|
+
[Entity.Cernunnos]: Cernunnos,
|
|
158
|
+
[Entity.Morrigan]: Morrigan,
|
|
159
|
+
[Entity.Kelpie]: Kelpie,
|
|
160
|
+
[Entity.Banshee]: Banshee,
|
|
161
|
+
[Entity.Fairy]: Fairy,
|
|
162
|
+
[Entity.Leprechaun]: Leprechaun,
|
|
163
|
+
[Entity.Selkie]: Selkie,
|
|
164
|
+
[Entity.Dullahan]: Dullahan
|
|
165
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ItemMove, Location, Material, MaterialItem, MaterialMove, MoveItem, XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
-
import { PlayerEffectRule } from './PlayerEffectRule';
|
|
3
|
-
export declare abstract class MoveEffectRule extends PlayerEffectRule {
|
|
4
|
-
canPlayEffect(cardIndex: number): boolean;
|
|
5
|
-
playEffect(): MaterialMove[];
|
|
6
|
-
getPlayerMoves(): MaterialMove[];
|
|
7
|
-
getSacrificeToPreventMove(): MoveItem<number, number, number>[];
|
|
8
|
-
getMoveCardsMoves(effectCardIndex?: number): MoveItem<number, number, number>[];
|
|
9
|
-
getCardsAbleToMove(effectCardIndex: number): Material<number, number, number>;
|
|
10
|
-
getMovingCards(effectCardIndex: number): Material;
|
|
11
|
-
getAvailableDestinations(card: MaterialItem, _cardIndex: number): XYCoordinates[];
|
|
12
|
-
isLegalDestination(_space: XYCoordinates, _cardLocation: Location): boolean;
|
|
13
|
-
beforeItemMove(move: ItemMove): MaterialMove
|
|
14
|
-
onCardMoved(_move: MoveItem): MaterialMove[];
|
|
15
|
-
onCardSacrificed(move: MoveItem): MaterialMove[];
|
|
16
|
-
onEndEffect(): MaterialMove
|
|
17
|
-
updateGridAfterMoves(): MoveItem
|
|
18
|
-
}
|
|
1
|
+
import { ItemMove, Location, Material, MaterialItem, MaterialMove, MoveItem, XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
+
import { PlayerEffectRule } from './PlayerEffectRule';
|
|
3
|
+
export declare abstract class MoveEffectRule extends PlayerEffectRule {
|
|
4
|
+
canPlayEffect(cardIndex: number): boolean;
|
|
5
|
+
playEffect(): MaterialMove[];
|
|
6
|
+
getPlayerMoves(): MaterialMove[];
|
|
7
|
+
getSacrificeToPreventMove(): MoveItem<number, number, number>[];
|
|
8
|
+
getMoveCardsMoves(effectCardIndex?: number): MoveItem<number, number, number>[];
|
|
9
|
+
getCardsAbleToMove(effectCardIndex: number): Material<number, number, number>;
|
|
10
|
+
getMovingCards(effectCardIndex: number): Material;
|
|
11
|
+
getAvailableDestinations(card: MaterialItem, _cardIndex: number): XYCoordinates[];
|
|
12
|
+
isLegalDestination(_space: XYCoordinates, _cardLocation: Location): boolean;
|
|
13
|
+
beforeItemMove(move: ItemMove): MaterialMove[];
|
|
14
|
+
onCardMoved(_move: MoveItem): MaterialMove[];
|
|
15
|
+
onCardSacrificed(move: MoveItem): MaterialMove[];
|
|
16
|
+
onEndEffect(): MaterialMove[];
|
|
17
|
+
updateGridAfterMoves(): MoveItem[];
|
|
18
|
+
}
|
|
@@ -1,129 +1,73 @@
|
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return this.
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var cards = this.getCardsAbleToMove(effectCardIndex);
|
|
75
|
-
return cards.getIndexes().flatMap(function (cardIndex) {
|
|
76
|
-
var card = cards.index(cardIndex);
|
|
77
|
-
return _this.getAvailableDestinations(card.getItem(), cardIndex).map(function (_a) {
|
|
78
|
-
var x = _a.x, y = _a.y;
|
|
79
|
-
return card.moveItem({ type: LocationType_1.LocationType.Pantheon, player: _this.player, x: x, y: y });
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
MoveEffectRule.prototype.getCardsAbleToMove = function (effectCardIndex) {
|
|
84
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
85
|
-
return this.getMovingCards(effectCardIndex).filter(function (item) { return pantheon.isAbleToMove(item); });
|
|
86
|
-
};
|
|
87
|
-
MoveEffectRule.prototype.getMovingCards = function (effectCardIndex) {
|
|
88
|
-
var player = this.material(MaterialType_1.MaterialType.EntityCard).getItem(effectCardIndex).location.player;
|
|
89
|
-
return new Pantheon_1.Pantheon(this.game, player).visibleEntities;
|
|
90
|
-
};
|
|
91
|
-
MoveEffectRule.prototype.getAvailableDestinations = function (card, _cardIndex) {
|
|
92
|
-
var _this = this;
|
|
93
|
-
return new Pantheon_1.Pantheon(this.game, this.player).legalSpaces.filter(function (space) { return (space.y !== card.location.y || space.x !== card.location.x) && _this.isLegalDestination(space, card.location); });
|
|
94
|
-
};
|
|
95
|
-
MoveEffectRule.prototype.isLegalDestination = function (_space, _cardLocation) {
|
|
96
|
-
return true;
|
|
97
|
-
};
|
|
98
|
-
MoveEffectRule.prototype.beforeItemMove = function (move) {
|
|
99
|
-
if ((0, rules_api_1.isMoveItemType)(MaterialType_1.MaterialType.EntityCard)(move)) {
|
|
100
|
-
if (move.location.type === LocationType_1.LocationType.Pantheon) {
|
|
101
|
-
return this.onCardMoved(move);
|
|
102
|
-
}
|
|
103
|
-
else if (move.location.type === LocationType_1.LocationType.PlayerDiscard) {
|
|
104
|
-
return this.onCardSacrificed(move);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return [];
|
|
108
|
-
};
|
|
109
|
-
MoveEffectRule.prototype.onCardMoved = function (_move) {
|
|
110
|
-
return [this.customMove(CustomMoveType_1.CustomMoveType.EndEffect)];
|
|
111
|
-
};
|
|
112
|
-
MoveEffectRule.prototype.onCardSacrificed = function (move) {
|
|
113
|
-
if (this.getSacrificeToPreventMove().some(function (sacrificeMove) { return (0, lodash_1.isEqual)(move, sacrificeMove); })) {
|
|
114
|
-
return [this.customMove(CustomMoveType_1.CustomMoveType.EndEffect)];
|
|
115
|
-
}
|
|
116
|
-
return [];
|
|
117
|
-
};
|
|
118
|
-
MoveEffectRule.prototype.onEndEffect = function () {
|
|
119
|
-
return __spreadArray(__spreadArray([], __read(this.updateGridAfterMoves()), false), __read(_super.prototype.onEndEffect.call(this)), false);
|
|
120
|
-
};
|
|
121
|
-
MoveEffectRule.prototype.updateGridAfterMoves = function () {
|
|
122
|
-
var _a;
|
|
123
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
124
|
-
(_a = new TriggerEffectsRule_1.TriggerEffectsRule(this.game)).triggerEffects.apply(_a, __spreadArray([], __read(pantheon.updateGrid()), false));
|
|
125
|
-
return pantheon.gainBonus();
|
|
126
|
-
};
|
|
127
|
-
return MoveEffectRule;
|
|
128
|
-
}(PlayerEffectRule_1.PlayerEffectRule));
|
|
129
|
-
exports.MoveEffectRule = MoveEffectRule;
|
|
1
|
+
import { isMoveItemType } from '@gamepark/rules-api';
|
|
2
|
+
import { isEqual } from 'es-toolkit';
|
|
3
|
+
import { CustomMoveType } from '../../CustomMoveType';
|
|
4
|
+
import { TriggerEffectsRule } from '../../rules/effects/TriggerEffectsRule';
|
|
5
|
+
import { LocationType } from '../LocationType';
|
|
6
|
+
import { MaterialType } from '../MaterialType';
|
|
7
|
+
import { Pantheon } from '../Pantheon';
|
|
8
|
+
import { PlayerEffectRule } from './PlayerEffectRule';
|
|
9
|
+
export class MoveEffectRule extends PlayerEffectRule {
|
|
10
|
+
canPlayEffect(cardIndex) {
|
|
11
|
+
return this.getMoveCardsMoves(cardIndex).length > 0;
|
|
12
|
+
}
|
|
13
|
+
playEffect() {
|
|
14
|
+
if (!this.getMoveCardsMoves().length)
|
|
15
|
+
return [];
|
|
16
|
+
return super.playEffect();
|
|
17
|
+
}
|
|
18
|
+
getPlayerMoves() {
|
|
19
|
+
return this.getMoveCardsMoves().concat(this.getSacrificeToPreventMove());
|
|
20
|
+
}
|
|
21
|
+
getSacrificeToPreventMove() {
|
|
22
|
+
return new Pantheon(this.game, this.player).sacrificeToPreventMove();
|
|
23
|
+
}
|
|
24
|
+
getMoveCardsMoves(effectCardIndex = this.getEffect().cardIndex) {
|
|
25
|
+
const cards = this.getCardsAbleToMove(effectCardIndex);
|
|
26
|
+
return cards.getIndexes().flatMap((cardIndex) => {
|
|
27
|
+
const card = cards.index(cardIndex);
|
|
28
|
+
return this.getAvailableDestinations(card.getItem(), cardIndex).map(({ x, y }) => card.moveItem({ type: LocationType.Pantheon, player: this.player, x, y }));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getCardsAbleToMove(effectCardIndex) {
|
|
32
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
33
|
+
return this.getMovingCards(effectCardIndex).filter((item) => pantheon.isAbleToMove(item));
|
|
34
|
+
}
|
|
35
|
+
getMovingCards(effectCardIndex) {
|
|
36
|
+
const player = this.material(MaterialType.EntityCard).getItem(effectCardIndex).location.player;
|
|
37
|
+
return new Pantheon(this.game, player).visibleEntities;
|
|
38
|
+
}
|
|
39
|
+
getAvailableDestinations(card, _cardIndex) {
|
|
40
|
+
return new Pantheon(this.game, this.player).legalSpaces.filter((space) => (space.y !== card.location.y || space.x !== card.location.x) && this.isLegalDestination(space, card.location));
|
|
41
|
+
}
|
|
42
|
+
isLegalDestination(_space, _cardLocation) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
beforeItemMove(move) {
|
|
46
|
+
if (isMoveItemType(MaterialType.EntityCard)(move)) {
|
|
47
|
+
if (move.location.type === LocationType.Pantheon) {
|
|
48
|
+
return this.onCardMoved(move);
|
|
49
|
+
}
|
|
50
|
+
else if (move.location.type === LocationType.PlayerDiscard) {
|
|
51
|
+
return this.onCardSacrificed(move);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
onCardMoved(_move) {
|
|
57
|
+
return [this.customMove(CustomMoveType.EndEffect)];
|
|
58
|
+
}
|
|
59
|
+
onCardSacrificed(move) {
|
|
60
|
+
if (this.getSacrificeToPreventMove().some((sacrificeMove) => isEqual(move, sacrificeMove))) {
|
|
61
|
+
return [this.customMove(CustomMoveType.EndEffect)];
|
|
62
|
+
}
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
onEndEffect() {
|
|
66
|
+
return [...this.updateGridAfterMoves(), ...super.onEndEffect()];
|
|
67
|
+
}
|
|
68
|
+
updateGridAfterMoves() {
|
|
69
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
70
|
+
new TriggerEffectsRule(this.game).triggerEffects(...pantheon.updateGrid());
|
|
71
|
+
return pantheon.gainBonus();
|
|
72
|
+
}
|
|
73
|
+
}
|