@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
|
@@ -1,105 +1,34 @@
|
|
|
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
|
-
if (ar || !(i in from)) {
|
|
36
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
-
ar[i] = from[i];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
-
};
|
|
42
|
-
var __values = (this && this.__values) || function(o) {
|
|
43
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
44
|
-
if (m) return m.call(o);
|
|
45
|
-
if (o && typeof o.length === "number") return {
|
|
46
|
-
next: function () {
|
|
47
|
-
if (o && i >= o.length) o = void 0;
|
|
48
|
-
return { value: o && o[i++], done: !o };
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.EndGameRule = void 0;
|
|
55
|
-
var rules_api_1 = require("@gamepark/rules-api");
|
|
56
|
-
var Effect_1 = require("../material/entity/Effect");
|
|
57
|
-
var MaterialType_1 = require("../material/MaterialType");
|
|
58
|
-
var Pantheon_1 = require("../material/Pantheon");
|
|
59
|
-
var Memory_1 = require("../Memory");
|
|
60
|
-
var TriggerEffectsRule_1 = require("./effects/TriggerEffectsRule");
|
|
61
|
-
var RuleId_1 = require("./RuleId");
|
|
62
|
-
var EndGameRule = (function (_super) {
|
|
63
|
-
__extends(EndGameRule, _super);
|
|
64
|
-
function EndGameRule() {
|
|
65
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
66
|
-
}
|
|
67
|
-
EndGameRule.prototype.onRuleStart = function () {
|
|
68
|
-
new TriggerEffectsRule_1.TriggerEffectsRule(this.game).triggerEffects({ type: Effect_1.TriggerEventType.EndOfGame });
|
|
69
|
-
var pendingEffects = this.remind(Memory_1.Memory.PendingEffects);
|
|
70
|
-
if (pendingEffects.length) {
|
|
71
|
-
var cardIndex = pendingEffects[0][0].cardIndex;
|
|
72
|
-
var player = this.material(MaterialType_1.MaterialType.EntityCard).getItem(cardIndex).location.player;
|
|
73
|
-
return [this.startPlayerTurn(RuleId_1.RuleId.ResolveEffects, player)];
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
return __spreadArray(__spreadArray([], __read(this.convertGems()), false), [this.endGame()], false);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
EndGameRule.prototype.convertGems = function () {
|
|
80
|
-
var e_1, _a;
|
|
81
|
-
var moves = [];
|
|
82
|
-
try {
|
|
83
|
-
for (var _b = __values(this.game.players), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
84
|
-
var player = _c.value;
|
|
85
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, player);
|
|
86
|
-
var gems = pantheon.gems;
|
|
87
|
-
if (gems >= 3) {
|
|
88
|
-
var favor = Math.floor(gems / 3);
|
|
89
|
-
moves.push(pantheon.spendGems(favor * 3));
|
|
90
|
-
moves.push(pantheon.gainFavor(favor));
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
95
|
-
finally {
|
|
96
|
-
try {
|
|
97
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
98
|
-
}
|
|
99
|
-
finally { if (e_1) throw e_1.error; }
|
|
100
|
-
}
|
|
101
|
-
return moves;
|
|
102
|
-
};
|
|
103
|
-
return EndGameRule;
|
|
104
|
-
}(rules_api_1.PlayerTurnRule));
|
|
105
|
-
exports.EndGameRule = EndGameRule;
|
|
1
|
+
import { PlayerTurnRule } from '@gamepark/rules-api';
|
|
2
|
+
import { TriggerEventType } from '../material/entity/Effect';
|
|
3
|
+
import { MaterialType } from '../material/MaterialType';
|
|
4
|
+
import { Pantheon } from '../material/Pantheon';
|
|
5
|
+
import { Memory } from '../Memory';
|
|
6
|
+
import { TriggerEffectsRule } from './effects/TriggerEffectsRule';
|
|
7
|
+
import { RuleId } from './RuleId';
|
|
8
|
+
export class EndGameRule extends PlayerTurnRule {
|
|
9
|
+
onRuleStart() {
|
|
10
|
+
new TriggerEffectsRule(this.game).triggerEffects({ type: TriggerEventType.EndOfGame });
|
|
11
|
+
const pendingEffects = this.remind(Memory.PendingEffects);
|
|
12
|
+
if (pendingEffects.length) {
|
|
13
|
+
const cardIndex = pendingEffects[0].effects[0].cardIndex;
|
|
14
|
+
const player = this.material(MaterialType.EntityCard).getItem(cardIndex).location.player;
|
|
15
|
+
return [this.startPlayerTurn(RuleId.ResolveEffects, player)];
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return [...this.convertGems(), this.endGame()];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
convertGems() {
|
|
22
|
+
const moves = [];
|
|
23
|
+
for (const player of this.game.players) {
|
|
24
|
+
const pantheon = new Pantheon(this.game, player);
|
|
25
|
+
const gems = pantheon.gems;
|
|
26
|
+
if (gems >= 3) {
|
|
27
|
+
const favor = Math.floor(gems / 3);
|
|
28
|
+
moves.push(pantheon.spendGems(favor * 3));
|
|
29
|
+
moves.push(pantheon.gainFavor(favor));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return moves;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CustomMove, ItemMove, MaterialMove, PlayerTurnRule } from '@gamepark/rules-api';
|
|
2
|
-
import {
|
|
3
|
-
import { RuleId } from './RuleId';
|
|
4
|
-
export declare class PlaceCardsRule extends PlayerTurnRule {
|
|
5
|
-
isInvoke: boolean;
|
|
6
|
-
getPlayerMoves(): MaterialMove
|
|
7
|
-
get infiniteEffects():
|
|
8
|
-
isOncePerTurnAvailable(cardIndex: number): boolean;
|
|
9
|
-
beforeItemMove(move: ItemMove): MaterialMove
|
|
10
|
-
onCustomMove(move: CustomMove): MaterialMove
|
|
11
|
-
onPass(): MaterialMove
|
|
12
|
-
get nextRule(): import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.PlaceCards> | import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.Upkeep> | import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.EndGame>;
|
|
13
|
-
get round(): number;
|
|
14
|
-
}
|
|
1
|
+
import { CustomMove, ItemMove, MaterialMove, PlayerTurnRule } from '@gamepark/rules-api';
|
|
2
|
+
import { CardEffect } from '../material/entity/Effect';
|
|
3
|
+
import { RuleId } from './RuleId';
|
|
4
|
+
export declare class PlaceCardsRule extends PlayerTurnRule {
|
|
5
|
+
isInvoke: boolean;
|
|
6
|
+
getPlayerMoves(): MaterialMove[];
|
|
7
|
+
get infiniteEffects(): CardEffect[];
|
|
8
|
+
isOncePerTurnAvailable(cardIndex: number): boolean;
|
|
9
|
+
beforeItemMove(move: ItemMove): MaterialMove[];
|
|
10
|
+
onCustomMove(move: CustomMove): MaterialMove[];
|
|
11
|
+
onPass(): MaterialMove[];
|
|
12
|
+
get nextRule(): import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.PlaceCards> | import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.Upkeep> | import("@gamepark/rules-api").StartPlayerTurn<number, RuleId.EndGame>;
|
|
13
|
+
get round(): number;
|
|
14
|
+
}
|
|
@@ -1,206 +1,107 @@
|
|
|
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
|
-
else {
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return [];
|
|
109
|
-
var pendingEffect = new TriggerEffectsRule_1.TriggerEffectsRule(this.game).getPlayerEffects(this.player, { type: Effect_1.TriggerEventType.Infinite });
|
|
110
|
-
return pendingEffect.filter(function (pendingEffect) {
|
|
111
|
-
var card = _this.material(MaterialType_1.MaterialType.EntityCard).getItem(pendingEffect.cardIndex);
|
|
112
|
-
var effect = (0, EntityDescription_1.getEffects)(card.id.front)[pendingEffect.effectIndex];
|
|
113
|
-
var canPlayEffect = (0, Effect_1.isTriggeredEffect)(effect) && new effect.rule(_this.game).canPlayEffect(pendingEffect.cardIndex);
|
|
114
|
-
return canPlayEffect && _this.isOncePerTurnAvailable(pendingEffect.cardIndex);
|
|
115
|
-
});
|
|
116
|
-
},
|
|
117
|
-
enumerable: false,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
PlaceCardsRule.prototype.isOncePerTurnAvailable = function (cardIndex) {
|
|
121
|
-
var _a;
|
|
122
|
-
var oncePerTurnUsed = (_a = this.remind(Memory_1.Memory.OncePerTurn)) !== null && _a !== void 0 ? _a : [];
|
|
123
|
-
return !oncePerTurnUsed.includes(cardIndex);
|
|
124
|
-
};
|
|
125
|
-
PlaceCardsRule.prototype.beforeItemMove = function (move) {
|
|
126
|
-
var moves = [];
|
|
127
|
-
if ((0, rules_api_1.isMoveItemType)(MaterialType_1.MaterialType.EntityCard)(move)) {
|
|
128
|
-
if (this.material(MaterialType_1.MaterialType.EntityCard).getItem(move.itemIndex).location.type === LocationType_1.LocationType.PlayerSelectedCards) {
|
|
129
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
130
|
-
if (move.location.type === LocationType_1.LocationType.PlayerDiscard) {
|
|
131
|
-
moves.push(pantheon.gainGems(2));
|
|
132
|
-
}
|
|
133
|
-
else if (move.location.type === LocationType_1.LocationType.Pantheon) {
|
|
134
|
-
moves.push.apply(moves, __spreadArray([], __read(pantheon.onCardPlaced(move)), false));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return moves;
|
|
139
|
-
};
|
|
140
|
-
PlaceCardsRule.prototype.onCustomMove = function (move) {
|
|
141
|
-
if (move.type === CustomMoveType_1.CustomMoveType.Pass) {
|
|
142
|
-
return this.onPass();
|
|
143
|
-
}
|
|
144
|
-
else if (move.type === CustomMoveType_1.CustomMoveType.TrialSuccess) {
|
|
145
|
-
var reward = move.data.reward;
|
|
146
|
-
return [new Pantheon_1.Pantheon(this.game, this.player).gainFavor(reward)];
|
|
147
|
-
}
|
|
148
|
-
else if (move.type === CustomMoveType_1.CustomMoveType.TrialFailure) {
|
|
149
|
-
this.memorize(Memory_1.Memory.TrialFailure, true, this.player);
|
|
150
|
-
}
|
|
151
|
-
else if (move.type === CustomMoveType_1.CustomMoveType.PlayEffect) {
|
|
152
|
-
this.memorize(Memory_1.Memory.PendingRule, this.game.rule);
|
|
153
|
-
return new ResolveEffectsRule_1.ResolveEffectsRule(this.game).onPlayEffect(move.data);
|
|
154
|
-
}
|
|
155
|
-
else if (move.type === CustomMoveType_1.CustomMoveType.EndEffect) {
|
|
156
|
-
return new ResolveEffectsRule_1.ResolveEffectsRule(this.game).onEndEffect();
|
|
157
|
-
}
|
|
158
|
-
return [];
|
|
159
|
-
};
|
|
160
|
-
PlaceCardsRule.prototype.onPass = function () {
|
|
161
|
-
var e_2, _a;
|
|
162
|
-
var moves = [];
|
|
163
|
-
var effects = new TriggerEffectsRule_1.TriggerEffectsRule(this.game).getPlayerEffects(this.player, { type: Effect_1.TriggerEventType.EndOfTurn, player: this.player });
|
|
164
|
-
var resolveEffectsRule = new ResolveEffectsRule_1.ResolveEffectsRule(this.game);
|
|
165
|
-
try {
|
|
166
|
-
for (var effects_1 = __values(effects), effects_1_1 = effects_1.next(); !effects_1_1.done; effects_1_1 = effects_1.next()) {
|
|
167
|
-
var effect = effects_1_1.value;
|
|
168
|
-
moves.push.apply(moves, __spreadArray([], __read(resolveEffectsRule.playEffect(effect)), false));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
172
|
-
finally {
|
|
173
|
-
try {
|
|
174
|
-
if (effects_1_1 && !effects_1_1.done && (_a = effects_1.return)) _a.call(effects_1);
|
|
175
|
-
}
|
|
176
|
-
finally { if (e_2) throw e_2.error; }
|
|
177
|
-
}
|
|
178
|
-
moves.push.apply(moves, __spreadArray([], __read(new Trial_1.Trial(this.game).passTrials(this.player)), false));
|
|
179
|
-
moves.push(this.nextRule);
|
|
180
|
-
return moves;
|
|
181
|
-
};
|
|
182
|
-
Object.defineProperty(PlaceCardsRule.prototype, "nextRule", {
|
|
183
|
-
get: function () {
|
|
184
|
-
if (this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.PlayerSelectedCards).length > 0) {
|
|
185
|
-
return this.startPlayerTurn(RuleId_1.RuleId.PlaceCards, this.nextPlayer);
|
|
186
|
-
}
|
|
187
|
-
else if (this.round < 4) {
|
|
188
|
-
return this.startPlayerTurn(RuleId_1.RuleId.Upkeep, this.nextPlayer);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
return this.startPlayerTurn(RuleId_1.RuleId.EndGame, this.nextPlayer);
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
enumerable: false,
|
|
195
|
-
configurable: true
|
|
196
|
-
});
|
|
197
|
-
Object.defineProperty(PlaceCardsRule.prototype, "round", {
|
|
198
|
-
get: function () {
|
|
199
|
-
return this.material(MaterialType_1.MaterialType.RoundToken).getItem().location.id;
|
|
200
|
-
},
|
|
201
|
-
enumerable: false,
|
|
202
|
-
configurable: true
|
|
203
|
-
});
|
|
204
|
-
return PlaceCardsRule;
|
|
205
|
-
}(rules_api_1.PlayerTurnRule));
|
|
206
|
-
exports.PlaceCardsRule = PlaceCardsRule;
|
|
1
|
+
import { isMoveItemType, PlayerTurnRule } from '@gamepark/rules-api';
|
|
2
|
+
import { CustomMoveType } from '../CustomMoveType';
|
|
3
|
+
import { isGod } from '../material/Entity';
|
|
4
|
+
import { isTriggeredEffect, TriggerEventType } from '../material/entity/Effect';
|
|
5
|
+
import { getEffects } from '../material/entity/EntityDescription';
|
|
6
|
+
import { LocationType } from '../material/LocationType';
|
|
7
|
+
import { MaterialType } from '../material/MaterialType';
|
|
8
|
+
import { Pantheon } from '../material/Pantheon';
|
|
9
|
+
import { Trial } from '../material/Trial';
|
|
10
|
+
import { Memory } from '../Memory';
|
|
11
|
+
import { ResolveEffectsRule } from './effects/ResolveEffectsRule';
|
|
12
|
+
import { TriggerEffectsRule } from './effects/TriggerEffectsRule';
|
|
13
|
+
import { RuleId } from './RuleId';
|
|
14
|
+
export class PlaceCardsRule extends PlayerTurnRule {
|
|
15
|
+
isInvoke = true;
|
|
16
|
+
getPlayerMoves() {
|
|
17
|
+
const moves = this.infiniteEffects.map((effect) => this.customMove(CustomMoveType.PlayEffect, effect));
|
|
18
|
+
const cards = this.material(MaterialType.EntityCard).location(LocationType.PlayerSelectedCards).player(this.player);
|
|
19
|
+
if (cards.length) {
|
|
20
|
+
const cardsICanInvoke = new Pantheon(this.game, this.player).gems < 4 ? cards.id((id) => !isGod(id.front)) : cards;
|
|
21
|
+
for (const { x, y } of new Pantheon(this.game, this.player).legalSpacesToInvoke) {
|
|
22
|
+
moves.push(...cardsICanInvoke.moveItems({ type: LocationType.Pantheon, x, y, player: this.player }));
|
|
23
|
+
}
|
|
24
|
+
moves.push(...cards.moveItems({ type: LocationType.PlayerDiscard, player: this.player }));
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
moves.push(this.customMove(CustomMoveType.Pass));
|
|
28
|
+
}
|
|
29
|
+
return moves;
|
|
30
|
+
}
|
|
31
|
+
get infiniteEffects() {
|
|
32
|
+
const pendingRule = this.remind(Memory.PendingRule) ?? this.game.rule;
|
|
33
|
+
if (pendingRule?.id !== RuleId.PlaceCards || pendingRule.player !== this.player)
|
|
34
|
+
return [];
|
|
35
|
+
const pendingEffect = new TriggerEffectsRule(this.game).getPlayerEffects(this.player, { type: TriggerEventType.Infinite });
|
|
36
|
+
return pendingEffect.filter((pendingEffect) => {
|
|
37
|
+
const card = this.material(MaterialType.EntityCard).getItem(pendingEffect.cardIndex);
|
|
38
|
+
const effect = getEffects(card.id.front)[pendingEffect.effectIndex];
|
|
39
|
+
const canPlayEffect = isTriggeredEffect(effect) && new effect.rule(this.game).canPlayEffect(pendingEffect.cardIndex);
|
|
40
|
+
return canPlayEffect && this.isOncePerTurnAvailable(pendingEffect.cardIndex);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
isOncePerTurnAvailable(cardIndex) {
|
|
44
|
+
const oncePerTurnUsed = this.remind(Memory.OncePerTurn) ?? [];
|
|
45
|
+
return !oncePerTurnUsed.includes(cardIndex);
|
|
46
|
+
}
|
|
47
|
+
beforeItemMove(move) {
|
|
48
|
+
const moves = [];
|
|
49
|
+
if (isMoveItemType(MaterialType.EntityCard)(move)) {
|
|
50
|
+
if (this.material(MaterialType.EntityCard).getItem(move.itemIndex).location.type === LocationType.PlayerSelectedCards) {
|
|
51
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
52
|
+
if (move.location.type === LocationType.PlayerDiscard) {
|
|
53
|
+
moves.push(pantheon.gainGems(2));
|
|
54
|
+
}
|
|
55
|
+
else if (move.location.type === LocationType.Pantheon) {
|
|
56
|
+
moves.push(...pantheon.onCardPlaced(move));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return moves;
|
|
61
|
+
}
|
|
62
|
+
onCustomMove(move) {
|
|
63
|
+
if (move.type === CustomMoveType.Pass) {
|
|
64
|
+
return this.onPass();
|
|
65
|
+
}
|
|
66
|
+
else if (move.type === CustomMoveType.TrialSuccess) {
|
|
67
|
+
const { reward } = move.data;
|
|
68
|
+
return [new Pantheon(this.game, this.player).gainFavor(reward)];
|
|
69
|
+
}
|
|
70
|
+
else if (move.type === CustomMoveType.TrialFailure) {
|
|
71
|
+
this.memorize(Memory.TrialFailure, true, this.player);
|
|
72
|
+
}
|
|
73
|
+
else if (move.type === CustomMoveType.PlayEffect) {
|
|
74
|
+
this.memorize(Memory.PendingRule, this.game.rule);
|
|
75
|
+
return new ResolveEffectsRule(this.game).playEffect(move.data);
|
|
76
|
+
}
|
|
77
|
+
else if (move.type === CustomMoveType.EndEffect) {
|
|
78
|
+
return new ResolveEffectsRule(this.game).onEndEffect();
|
|
79
|
+
}
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
onPass() {
|
|
83
|
+
const moves = [];
|
|
84
|
+
const effects = new TriggerEffectsRule(this.game).getPlayerEffects(this.player, { type: TriggerEventType.EndOfTurn, player: this.player });
|
|
85
|
+
const resolveEffectsRule = new ResolveEffectsRule(this.game);
|
|
86
|
+
for (const effect of effects) {
|
|
87
|
+
moves.push(...resolveEffectsRule.playEffect(effect));
|
|
88
|
+
}
|
|
89
|
+
moves.push(...new Trial(this.game).passTrials(this.player));
|
|
90
|
+
moves.push(this.nextRule);
|
|
91
|
+
return moves;
|
|
92
|
+
}
|
|
93
|
+
get nextRule() {
|
|
94
|
+
if (this.material(MaterialType.EntityCard).location(LocationType.PlayerSelectedCards).length > 0) {
|
|
95
|
+
return this.startPlayerTurn(RuleId.PlaceCards, this.nextPlayer);
|
|
96
|
+
}
|
|
97
|
+
else if (this.round < 4) {
|
|
98
|
+
return this.startPlayerTurn(RuleId.Upkeep, this.nextPlayer);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return this.startPlayerTurn(RuleId.EndGame, this.nextPlayer);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
get round() {
|
|
105
|
+
return this.material(MaterialType.RoundToken).getItem().location.id;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ItemMove, MaterialMove, SimultaneousRule } from '@gamepark/rules-api';
|
|
2
|
-
import { EntityItem } from '../material/Entity';
|
|
3
|
-
import { PlayerColor } from '../PlayerColor';
|
|
4
|
-
export declare class PlaceTokenRule extends SimultaneousRule {
|
|
5
|
-
onRuleStart(): MaterialMove
|
|
6
|
-
getActivePlayerLegalMoves(player: PlayerColor): import("@gamepark/rules-api").MoveItem<number, number, number>[];
|
|
7
|
-
getAvailableCards(player: PlayerColor): import("@gamepark/rules-api").Material<number, number, number>;
|
|
8
|
-
afterItemMove(move: ItemMove): import("@gamepark/rules-api").EndPlayerTurn<PlayerColor>[];
|
|
9
|
-
getMovesAfterPlayersDone(): MaterialMove
|
|
10
|
-
get playersFromFirstPlayer(): number[];
|
|
11
|
-
getMythologyBoardIndex(item: EntityItem): number;
|
|
12
|
-
}
|
|
1
|
+
import { ItemMove, MaterialMove, SimultaneousRule } from '@gamepark/rules-api';
|
|
2
|
+
import { EntityItem } from '../material/Entity';
|
|
3
|
+
import { PlayerColor } from '../PlayerColor';
|
|
4
|
+
export declare class PlaceTokenRule extends SimultaneousRule {
|
|
5
|
+
onRuleStart(): MaterialMove[];
|
|
6
|
+
getActivePlayerLegalMoves(player: PlayerColor): import("@gamepark/rules-api").MoveItem<number, number, number>[];
|
|
7
|
+
getAvailableCards(player: PlayerColor): import("@gamepark/rules-api").Material<number, number, number>;
|
|
8
|
+
afterItemMove(move: ItemMove): import("@gamepark/rules-api").EndPlayerTurn<PlayerColor>[];
|
|
9
|
+
getMovesAfterPlayersDone(): MaterialMove[];
|
|
10
|
+
get playersFromFirstPlayer(): number[];
|
|
11
|
+
getMythologyBoardIndex(item: EntityItem): number;
|
|
12
|
+
}
|