@gamepark/mythologies 0.9.3 → 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 -51
- package/dist/material/Pantheon.js +294 -486
- 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 -104
- package/dist/material/entity/Effect.js +26 -44
- 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 -9
- package/dist/rules/effects/ChimeraEffectRule.js +15 -44
- 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 -12
- package/dist/rules/effects/DraugrEffectRule.js +32 -63
- 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 -11
- package/dist/rules/effects/ImpunduluEffectRule.js +39 -81
- 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 -13
- package/dist/rules/effects/MultipleSimultaneousMoveEffectRule.js +71 -125
- 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,151 +1,75 @@
|
|
|
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
|
-
var mythology = destiny.getMythology(player);
|
|
77
|
-
if (this.remind(Memory_1.Memory.TargetMythology) === mythology && !new Pantheon_1.Pantheon(this.game, player).hasEntity(Entity_1.Entity.Odin)) {
|
|
78
|
-
return destiny.getTopDeckCreature(mythology);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return destiny.getAvailableCards(player);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
PlaceTokenRule.prototype.afterItemMove = function (move) {
|
|
85
|
-
if ((0, rules_api_1.isMoveItemType)(MaterialType_1.MaterialType.DraftToken)(move) && move.location.type === LocationType_1.LocationType.OnEntityCard) {
|
|
86
|
-
var player = this.material(MaterialType_1.MaterialType.DraftToken).getItem(move.itemIndex).id.back;
|
|
87
|
-
return [this.endPlayerTurn(player)];
|
|
88
|
-
}
|
|
89
|
-
return [];
|
|
90
|
-
};
|
|
91
|
-
PlaceTokenRule.prototype.getMovesAfterPlayersDone = function () {
|
|
92
|
-
var e_2, _a;
|
|
93
|
-
var tokensPlaced = this.material(MaterialType_1.MaterialType.DraftToken).location(LocationType_1.LocationType.OnEntityCard);
|
|
94
|
-
if (tokensPlaced.length < this.game.players.length * 2) {
|
|
95
|
-
return [this.startRule(RuleId_1.RuleId.DrawDestinyCard)];
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
var moves = [];
|
|
99
|
-
var _loop_1 = function (player) {
|
|
100
|
-
var e_3, _d;
|
|
101
|
-
var playerTokens = tokensPlaced.id(function (id) { return id.back === player; });
|
|
102
|
-
try {
|
|
103
|
-
for (var _e = (e_3 = void 0, __values(playerTokens.getIndexes())), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
104
|
-
var index = _f.value;
|
|
105
|
-
var tokenParent = playerTokens.getItem(index).location.parent;
|
|
106
|
-
moves.push(playerTokens.index(index).moveItem({ type: LocationType_1.LocationType.PlayerHand, player: player }), this_1.material(MaterialType_1.MaterialType.EntityCard).index(tokenParent).moveItem({ type: LocationType_1.LocationType.PlayerSelectedCards, player: player }));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
110
|
-
finally {
|
|
111
|
-
try {
|
|
112
|
-
if (_f && !_f.done && (_d = _e.return)) _d.call(_e);
|
|
113
|
-
}
|
|
114
|
-
finally { if (e_3) throw e_3.error; }
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
var this_1 = this;
|
|
118
|
-
try {
|
|
119
|
-
for (var _b = __values(this.playersFromFirstPlayer), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
120
|
-
var player = _c.value;
|
|
121
|
-
_loop_1(player);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
125
|
-
finally {
|
|
126
|
-
try {
|
|
127
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
128
|
-
}
|
|
129
|
-
finally { if (e_2) throw e_2.error; }
|
|
130
|
-
}
|
|
131
|
-
moves.push(this.startPlayerTurn(RuleId_1.RuleId.PlaceCards, this.material(MaterialType_1.MaterialType.FirstPlayerToken).getItem().location.player));
|
|
132
|
-
return moves;
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
Object.defineProperty(PlaceTokenRule.prototype, "playersFromFirstPlayer", {
|
|
136
|
-
get: function () {
|
|
137
|
-
var firstPlayer = this.material(MaterialType_1.MaterialType.FirstPlayerToken).getItem().location.player;
|
|
138
|
-
var index = this.game.players.indexOf(firstPlayer);
|
|
139
|
-
return this.game.players.slice(index).concat(this.game.players.slice(0, index));
|
|
140
|
-
},
|
|
141
|
-
enumerable: false,
|
|
142
|
-
configurable: true
|
|
143
|
-
});
|
|
144
|
-
PlaceTokenRule.prototype.getMythologyBoardIndex = function (item) {
|
|
145
|
-
return this.material(MaterialType_1.MaterialType.MythologyBoard)
|
|
146
|
-
.id(function (id) { return id.mythology === item.id.back.mythology; })
|
|
147
|
-
.getIndex();
|
|
148
|
-
};
|
|
149
|
-
return PlaceTokenRule;
|
|
150
|
-
}(rules_api_1.SimultaneousRule));
|
|
151
|
-
exports.PlaceTokenRule = PlaceTokenRule;
|
|
1
|
+
import { isMoveItemType, SimultaneousRule } from '@gamepark/rules-api';
|
|
2
|
+
import { Destiny } from '../material/Destiny';
|
|
3
|
+
import { Entity } from '../material/Entity';
|
|
4
|
+
import { LocationType } from '../material/LocationType';
|
|
5
|
+
import { MaterialType } from '../material/MaterialType';
|
|
6
|
+
import { Pantheon } from '../material/Pantheon';
|
|
7
|
+
import { Memory } from '../Memory';
|
|
8
|
+
import { RuleId } from './RuleId';
|
|
9
|
+
export class PlaceTokenRule extends SimultaneousRule {
|
|
10
|
+
onRuleStart() {
|
|
11
|
+
const moves = [];
|
|
12
|
+
for (const player of this.activePlayers) {
|
|
13
|
+
const legalMoves = this.getActivePlayerLegalMoves(player);
|
|
14
|
+
if (legalMoves.length === 1) {
|
|
15
|
+
moves.push(legalMoves[0]);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return moves;
|
|
19
|
+
}
|
|
20
|
+
getActivePlayerLegalMoves(player) {
|
|
21
|
+
const token = this.material(MaterialType.DraftToken)
|
|
22
|
+
.id((id) => id.back === player)
|
|
23
|
+
.location(LocationType.PlayedTokenSpot);
|
|
24
|
+
if (!token.length)
|
|
25
|
+
return [];
|
|
26
|
+
return this.getAvailableCards(player)
|
|
27
|
+
.getIndexes()
|
|
28
|
+
.map((parent) => token.moveItem({ type: LocationType.OnEntityCard, parent }));
|
|
29
|
+
}
|
|
30
|
+
getAvailableCards(player) {
|
|
31
|
+
const destiny = new Destiny(this.game);
|
|
32
|
+
const mythology = destiny.getMythology(player);
|
|
33
|
+
if (this.remind(Memory.TargetMythology) === mythology && !new Pantheon(this.game, player).hasEntity(Entity.Odin)) {
|
|
34
|
+
return destiny.getTopDeckCreature(mythology);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return destiny.getAvailableCards(player);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
afterItemMove(move) {
|
|
41
|
+
if (isMoveItemType(MaterialType.DraftToken)(move) && move.location.type === LocationType.OnEntityCard) {
|
|
42
|
+
const player = this.material(MaterialType.DraftToken).getItem(move.itemIndex).id.back;
|
|
43
|
+
return [this.endPlayerTurn(player)];
|
|
44
|
+
}
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
getMovesAfterPlayersDone() {
|
|
48
|
+
const tokensPlaced = this.material(MaterialType.DraftToken).location(LocationType.OnEntityCard);
|
|
49
|
+
if (tokensPlaced.length < this.game.players.length * 2) {
|
|
50
|
+
return [this.startRule(RuleId.DrawDestinyCard)];
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const moves = [];
|
|
54
|
+
for (const player of this.playersFromFirstPlayer) {
|
|
55
|
+
const playerTokens = tokensPlaced.id((id) => id.back === player);
|
|
56
|
+
for (const index of playerTokens.getIndexes()) {
|
|
57
|
+
const tokenParent = playerTokens.getItem(index).location.parent;
|
|
58
|
+
moves.push(playerTokens.index(index).moveItem({ type: LocationType.PlayerHand, player }), this.material(MaterialType.EntityCard).index(tokenParent).moveItem({ type: LocationType.PlayerSelectedCards, player }));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
moves.push(this.startPlayerTurn(RuleId.PlaceCards, this.material(MaterialType.FirstPlayerToken).getItem().location.player));
|
|
62
|
+
return moves;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
get playersFromFirstPlayer() {
|
|
66
|
+
const firstPlayer = this.material(MaterialType.FirstPlayerToken).getItem().location.player;
|
|
67
|
+
const index = this.game.players.indexOf(firstPlayer);
|
|
68
|
+
return this.game.players.slice(index).concat(this.game.players.slice(0, index));
|
|
69
|
+
}
|
|
70
|
+
getMythologyBoardIndex(item) {
|
|
71
|
+
return this.material(MaterialType.MythologyBoard)
|
|
72
|
+
.id((id) => id.mythology === item.id.back.mythology)
|
|
73
|
+
.getIndex();
|
|
74
|
+
}
|
|
75
|
+
}
|
package/dist/rules/RuleId.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
export declare enum RuleId {
|
|
2
|
-
DrawDestinyCard = 1,
|
|
3
|
-
ChooseDraftToken = 2,
|
|
4
|
-
PlaceToken = 3,
|
|
5
|
-
PlaceCards = 4,
|
|
6
|
-
Upkeep = 5,
|
|
7
|
-
EndGame = 6,
|
|
8
|
-
ResolveEffects = 10,
|
|
9
|
-
AthenaEffect = 11,
|
|
10
|
-
HadesEffect = 12,
|
|
11
|
-
MinotaurEffect = 13,
|
|
12
|
-
CentaurEffect = 14,
|
|
13
|
-
CentaurEffectSacrifice = 15,
|
|
14
|
-
GorgonEffect = 16,
|
|
15
|
-
CyclopsEffect = 17,
|
|
16
|
-
GriffinEffect = 18,
|
|
17
|
-
ChimeraEffect = 19,
|
|
18
|
-
OdinEffect = 20,
|
|
19
|
-
ThorEffect = 21,
|
|
20
|
-
DraugrEffect = 22,
|
|
21
|
-
FenrirChoice = 23,
|
|
22
|
-
FenrirEffect = 24,
|
|
23
|
-
AlfEffect = 25,
|
|
24
|
-
RaEffect = 26,
|
|
25
|
-
AnubisEffect = 27,
|
|
26
|
-
SphinxEffect = 28,
|
|
27
|
-
CobraEffect = 29,
|
|
28
|
-
CobraInvokeEffect = 30,
|
|
29
|
-
AmmitEffect = 31,
|
|
30
|
-
BennuEffect = 32,
|
|
31
|
-
ShivaEffect = 33,
|
|
32
|
-
RakshasaEffect = 34,
|
|
33
|
-
GarudaEffect = 35,
|
|
34
|
-
VetalaEffect = 36,
|
|
35
|
-
KinnaraEffect = 37,
|
|
36
|
-
KinnaraPlaceEffect = 38,
|
|
37
|
-
ViracochaEffect = 39,
|
|
38
|
-
IllapaEffect = 40,
|
|
39
|
-
IllapaSacrifice = 41,
|
|
40
|
-
CaimanEffect = 42,
|
|
41
|
-
CondorEffect = 43,
|
|
42
|
-
SupayEffect = 44,
|
|
43
|
-
UkukuEffect = 45,
|
|
44
|
-
UkukuPlaceEffect = 46,
|
|
45
|
-
YanluoWangEffect = 47,
|
|
46
|
-
NuwaEffect = 48,
|
|
47
|
-
TianlongEffect = 49,
|
|
48
|
-
TianlongOpponentsEffect = 50,
|
|
49
|
-
QilinEffect = 51,
|
|
50
|
-
FenghuangEffect = 52,
|
|
51
|
-
JiangshiEffect = 53,
|
|
52
|
-
InkosazanaEffect = 54,
|
|
53
|
-
ImpunduluEffect = 55,
|
|
54
|
-
WerehyenaEffect = 56,
|
|
55
|
-
IdloziEffect = 57,
|
|
56
|
-
FairyEffect = 58,
|
|
57
|
-
LeprechaunEffect = 59,
|
|
58
|
-
SelkieEffect = 60,
|
|
59
|
-
DullahanEffect = 61,
|
|
60
|
-
GarudaSacrifice = 62,
|
|
61
|
-
Mythology = 1000,
|
|
62
|
-
Creature = 1001,
|
|
63
|
-
Divinity = 1002,
|
|
64
|
-
Destined = 1003
|
|
65
|
-
}
|
|
1
|
+
export declare enum RuleId {
|
|
2
|
+
DrawDestinyCard = 1,
|
|
3
|
+
ChooseDraftToken = 2,
|
|
4
|
+
PlaceToken = 3,
|
|
5
|
+
PlaceCards = 4,
|
|
6
|
+
Upkeep = 5,
|
|
7
|
+
EndGame = 6,
|
|
8
|
+
ResolveEffects = 10,
|
|
9
|
+
AthenaEffect = 11,
|
|
10
|
+
HadesEffect = 12,
|
|
11
|
+
MinotaurEffect = 13,
|
|
12
|
+
CentaurEffect = 14,
|
|
13
|
+
CentaurEffectSacrifice = 15,
|
|
14
|
+
GorgonEffect = 16,
|
|
15
|
+
CyclopsEffect = 17,
|
|
16
|
+
GriffinEffect = 18,
|
|
17
|
+
ChimeraEffect = 19,
|
|
18
|
+
OdinEffect = 20,
|
|
19
|
+
ThorEffect = 21,
|
|
20
|
+
DraugrEffect = 22,
|
|
21
|
+
FenrirChoice = 23,
|
|
22
|
+
FenrirEffect = 24,
|
|
23
|
+
AlfEffect = 25,
|
|
24
|
+
RaEffect = 26,
|
|
25
|
+
AnubisEffect = 27,
|
|
26
|
+
SphinxEffect = 28,
|
|
27
|
+
CobraEffect = 29,
|
|
28
|
+
CobraInvokeEffect = 30,
|
|
29
|
+
AmmitEffect = 31,
|
|
30
|
+
BennuEffect = 32,
|
|
31
|
+
ShivaEffect = 33,
|
|
32
|
+
RakshasaEffect = 34,
|
|
33
|
+
GarudaEffect = 35,
|
|
34
|
+
VetalaEffect = 36,
|
|
35
|
+
KinnaraEffect = 37,
|
|
36
|
+
KinnaraPlaceEffect = 38,
|
|
37
|
+
ViracochaEffect = 39,
|
|
38
|
+
IllapaEffect = 40,
|
|
39
|
+
IllapaSacrifice = 41,
|
|
40
|
+
CaimanEffect = 42,
|
|
41
|
+
CondorEffect = 43,
|
|
42
|
+
SupayEffect = 44,
|
|
43
|
+
UkukuEffect = 45,
|
|
44
|
+
UkukuPlaceEffect = 46,
|
|
45
|
+
YanluoWangEffect = 47,
|
|
46
|
+
NuwaEffect = 48,
|
|
47
|
+
TianlongEffect = 49,
|
|
48
|
+
TianlongOpponentsEffect = 50,
|
|
49
|
+
QilinEffect = 51,
|
|
50
|
+
FenghuangEffect = 52,
|
|
51
|
+
JiangshiEffect = 53,
|
|
52
|
+
InkosazanaEffect = 54,
|
|
53
|
+
ImpunduluEffect = 55,
|
|
54
|
+
WerehyenaEffect = 56,
|
|
55
|
+
IdloziEffect = 57,
|
|
56
|
+
FairyEffect = 58,
|
|
57
|
+
LeprechaunEffect = 59,
|
|
58
|
+
SelkieEffect = 60,
|
|
59
|
+
DullahanEffect = 61,
|
|
60
|
+
GarudaSacrifice = 62,
|
|
61
|
+
Mythology = 1000,
|
|
62
|
+
Creature = 1001,
|
|
63
|
+
Divinity = 1002,
|
|
64
|
+
Destined = 1003
|
|
65
|
+
}
|
package/dist/rules/RuleId.js
CHANGED
|
@@ -1,69 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
RuleId[RuleId["
|
|
7
|
-
RuleId[RuleId["
|
|
8
|
-
RuleId[RuleId["
|
|
9
|
-
RuleId[RuleId["
|
|
10
|
-
RuleId[RuleId["
|
|
11
|
-
RuleId[RuleId["
|
|
12
|
-
RuleId[RuleId["
|
|
13
|
-
RuleId[RuleId["
|
|
14
|
-
RuleId[RuleId["
|
|
15
|
-
RuleId[RuleId["
|
|
16
|
-
RuleId[RuleId["
|
|
17
|
-
RuleId[RuleId["
|
|
18
|
-
RuleId[RuleId["
|
|
19
|
-
RuleId[RuleId["
|
|
20
|
-
RuleId[RuleId["
|
|
21
|
-
RuleId[RuleId["
|
|
22
|
-
RuleId[RuleId["
|
|
23
|
-
RuleId[RuleId["
|
|
24
|
-
RuleId[RuleId["
|
|
25
|
-
RuleId[RuleId["
|
|
26
|
-
RuleId[RuleId["
|
|
27
|
-
RuleId[RuleId["
|
|
28
|
-
RuleId[RuleId["
|
|
29
|
-
RuleId[RuleId["
|
|
30
|
-
RuleId[RuleId["
|
|
31
|
-
RuleId[RuleId["
|
|
32
|
-
RuleId[RuleId["
|
|
33
|
-
RuleId[RuleId["
|
|
34
|
-
RuleId[RuleId["
|
|
35
|
-
RuleId[RuleId["
|
|
36
|
-
RuleId[RuleId["
|
|
37
|
-
RuleId[RuleId["
|
|
38
|
-
RuleId[RuleId["
|
|
39
|
-
RuleId[RuleId["
|
|
40
|
-
RuleId[RuleId["
|
|
41
|
-
RuleId[RuleId["
|
|
42
|
-
RuleId[RuleId["
|
|
43
|
-
RuleId[RuleId["
|
|
44
|
-
RuleId[RuleId["
|
|
45
|
-
RuleId[RuleId["
|
|
46
|
-
RuleId[RuleId["
|
|
47
|
-
RuleId[RuleId["
|
|
48
|
-
RuleId[RuleId["
|
|
49
|
-
RuleId[RuleId["
|
|
50
|
-
RuleId[RuleId["
|
|
51
|
-
RuleId[RuleId["
|
|
52
|
-
RuleId[RuleId["
|
|
53
|
-
RuleId[RuleId["
|
|
54
|
-
RuleId[RuleId["
|
|
55
|
-
RuleId[RuleId["
|
|
56
|
-
RuleId[RuleId["
|
|
57
|
-
RuleId[RuleId["
|
|
58
|
-
RuleId[RuleId["
|
|
59
|
-
RuleId[RuleId["
|
|
60
|
-
RuleId[RuleId["
|
|
61
|
-
RuleId[RuleId["
|
|
62
|
-
RuleId[RuleId["
|
|
63
|
-
RuleId[RuleId["
|
|
64
|
-
RuleId[RuleId["
|
|
65
|
-
RuleId[RuleId["
|
|
66
|
-
|
|
67
|
-
RuleId[RuleId["Divinity"] = 1002] = "Divinity";
|
|
68
|
-
RuleId[RuleId["Destined"] = 1003] = "Destined";
|
|
69
|
-
})(RuleId = exports.RuleId || (exports.RuleId = {}));
|
|
1
|
+
export var RuleId;
|
|
2
|
+
(function (RuleId) {
|
|
3
|
+
RuleId[RuleId["DrawDestinyCard"] = 1] = "DrawDestinyCard";
|
|
4
|
+
RuleId[RuleId["ChooseDraftToken"] = 2] = "ChooseDraftToken";
|
|
5
|
+
RuleId[RuleId["PlaceToken"] = 3] = "PlaceToken";
|
|
6
|
+
RuleId[RuleId["PlaceCards"] = 4] = "PlaceCards";
|
|
7
|
+
RuleId[RuleId["Upkeep"] = 5] = "Upkeep";
|
|
8
|
+
RuleId[RuleId["EndGame"] = 6] = "EndGame";
|
|
9
|
+
RuleId[RuleId["ResolveEffects"] = 10] = "ResolveEffects";
|
|
10
|
+
RuleId[RuleId["AthenaEffect"] = 11] = "AthenaEffect";
|
|
11
|
+
RuleId[RuleId["HadesEffect"] = 12] = "HadesEffect";
|
|
12
|
+
RuleId[RuleId["MinotaurEffect"] = 13] = "MinotaurEffect";
|
|
13
|
+
RuleId[RuleId["CentaurEffect"] = 14] = "CentaurEffect";
|
|
14
|
+
RuleId[RuleId["CentaurEffectSacrifice"] = 15] = "CentaurEffectSacrifice";
|
|
15
|
+
RuleId[RuleId["GorgonEffect"] = 16] = "GorgonEffect";
|
|
16
|
+
RuleId[RuleId["CyclopsEffect"] = 17] = "CyclopsEffect";
|
|
17
|
+
RuleId[RuleId["GriffinEffect"] = 18] = "GriffinEffect";
|
|
18
|
+
RuleId[RuleId["ChimeraEffect"] = 19] = "ChimeraEffect";
|
|
19
|
+
RuleId[RuleId["OdinEffect"] = 20] = "OdinEffect";
|
|
20
|
+
RuleId[RuleId["ThorEffect"] = 21] = "ThorEffect";
|
|
21
|
+
RuleId[RuleId["DraugrEffect"] = 22] = "DraugrEffect";
|
|
22
|
+
RuleId[RuleId["FenrirChoice"] = 23] = "FenrirChoice";
|
|
23
|
+
RuleId[RuleId["FenrirEffect"] = 24] = "FenrirEffect";
|
|
24
|
+
RuleId[RuleId["AlfEffect"] = 25] = "AlfEffect";
|
|
25
|
+
RuleId[RuleId["RaEffect"] = 26] = "RaEffect";
|
|
26
|
+
RuleId[RuleId["AnubisEffect"] = 27] = "AnubisEffect";
|
|
27
|
+
RuleId[RuleId["SphinxEffect"] = 28] = "SphinxEffect";
|
|
28
|
+
RuleId[RuleId["CobraEffect"] = 29] = "CobraEffect";
|
|
29
|
+
RuleId[RuleId["CobraInvokeEffect"] = 30] = "CobraInvokeEffect";
|
|
30
|
+
RuleId[RuleId["AmmitEffect"] = 31] = "AmmitEffect";
|
|
31
|
+
RuleId[RuleId["BennuEffect"] = 32] = "BennuEffect";
|
|
32
|
+
RuleId[RuleId["ShivaEffect"] = 33] = "ShivaEffect";
|
|
33
|
+
RuleId[RuleId["RakshasaEffect"] = 34] = "RakshasaEffect";
|
|
34
|
+
RuleId[RuleId["GarudaEffect"] = 35] = "GarudaEffect";
|
|
35
|
+
RuleId[RuleId["VetalaEffect"] = 36] = "VetalaEffect";
|
|
36
|
+
RuleId[RuleId["KinnaraEffect"] = 37] = "KinnaraEffect";
|
|
37
|
+
RuleId[RuleId["KinnaraPlaceEffect"] = 38] = "KinnaraPlaceEffect";
|
|
38
|
+
RuleId[RuleId["ViracochaEffect"] = 39] = "ViracochaEffect";
|
|
39
|
+
RuleId[RuleId["IllapaEffect"] = 40] = "IllapaEffect";
|
|
40
|
+
RuleId[RuleId["IllapaSacrifice"] = 41] = "IllapaSacrifice";
|
|
41
|
+
RuleId[RuleId["CaimanEffect"] = 42] = "CaimanEffect";
|
|
42
|
+
RuleId[RuleId["CondorEffect"] = 43] = "CondorEffect";
|
|
43
|
+
RuleId[RuleId["SupayEffect"] = 44] = "SupayEffect";
|
|
44
|
+
RuleId[RuleId["UkukuEffect"] = 45] = "UkukuEffect";
|
|
45
|
+
RuleId[RuleId["UkukuPlaceEffect"] = 46] = "UkukuPlaceEffect";
|
|
46
|
+
RuleId[RuleId["YanluoWangEffect"] = 47] = "YanluoWangEffect";
|
|
47
|
+
RuleId[RuleId["NuwaEffect"] = 48] = "NuwaEffect";
|
|
48
|
+
RuleId[RuleId["TianlongEffect"] = 49] = "TianlongEffect";
|
|
49
|
+
RuleId[RuleId["TianlongOpponentsEffect"] = 50] = "TianlongOpponentsEffect";
|
|
50
|
+
RuleId[RuleId["QilinEffect"] = 51] = "QilinEffect";
|
|
51
|
+
RuleId[RuleId["FenghuangEffect"] = 52] = "FenghuangEffect";
|
|
52
|
+
RuleId[RuleId["JiangshiEffect"] = 53] = "JiangshiEffect";
|
|
53
|
+
RuleId[RuleId["InkosazanaEffect"] = 54] = "InkosazanaEffect";
|
|
54
|
+
RuleId[RuleId["ImpunduluEffect"] = 55] = "ImpunduluEffect";
|
|
55
|
+
RuleId[RuleId["WerehyenaEffect"] = 56] = "WerehyenaEffect";
|
|
56
|
+
RuleId[RuleId["IdloziEffect"] = 57] = "IdloziEffect";
|
|
57
|
+
RuleId[RuleId["FairyEffect"] = 58] = "FairyEffect";
|
|
58
|
+
RuleId[RuleId["LeprechaunEffect"] = 59] = "LeprechaunEffect";
|
|
59
|
+
RuleId[RuleId["SelkieEffect"] = 60] = "SelkieEffect";
|
|
60
|
+
RuleId[RuleId["DullahanEffect"] = 61] = "DullahanEffect";
|
|
61
|
+
RuleId[RuleId["GarudaSacrifice"] = 62] = "GarudaSacrifice";
|
|
62
|
+
RuleId[RuleId["Mythology"] = 1000] = "Mythology";
|
|
63
|
+
RuleId[RuleId["Creature"] = 1001] = "Creature";
|
|
64
|
+
RuleId[RuleId["Divinity"] = 1002] = "Divinity";
|
|
65
|
+
RuleId[RuleId["Destined"] = 1003] = "Destined";
|
|
66
|
+
})(RuleId || (RuleId = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ItemMove, MaterialMove, PlayerTurnRule } from '@gamepark/rules-api';
|
|
2
|
-
import { PlayerColor } from '../PlayerColor';
|
|
3
|
-
import { RuleId } from './RuleId';
|
|
4
|
-
export declare class UpkeepRule extends PlayerTurnRule {
|
|
5
|
-
onRuleStart(): MaterialMove
|
|
6
|
-
completeSanctuary(loki?: PlayerColor): MaterialMove
|
|
7
|
-
afterItemMove(move: ItemMove): import("@gamepark/rules-api").Shuffle<number>[];
|
|
8
|
-
get nextRule(): import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.OdinEffect> | import("@gamepark/rules-api").StartRule<RuleId.DrawDestinyCard>;
|
|
9
|
-
}
|
|
1
|
+
import { ItemMove, MaterialMove, PlayerTurnRule } from '@gamepark/rules-api';
|
|
2
|
+
import { PlayerColor } from '../PlayerColor';
|
|
3
|
+
import { RuleId } from './RuleId';
|
|
4
|
+
export declare class UpkeepRule extends PlayerTurnRule {
|
|
5
|
+
onRuleStart(): MaterialMove[];
|
|
6
|
+
completeSanctuary(loki?: PlayerColor): MaterialMove[];
|
|
7
|
+
afterItemMove(move: ItemMove): import("@gamepark/rules-api").Shuffle<number>[];
|
|
8
|
+
get nextRule(): import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.OdinEffect> | import("@gamepark/rules-api").StartRule<RuleId.DrawDestinyCard>;
|
|
9
|
+
}
|