@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,150 +1,48 @@
|
|
|
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
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.AthenaEffectRule = void 0;
|
|
55
|
-
var CustomMoveType_1 = require("../../CustomMoveType");
|
|
56
|
-
var PlayerEffectRule_1 = require("../../material/entity/PlayerEffectRule");
|
|
57
|
-
var LocationType_1 = require("../../material/LocationType");
|
|
58
|
-
var Pantheon_1 = require("../../material/Pantheon");
|
|
59
|
-
var Memory_1 = require("../../Memory");
|
|
60
|
-
var RuleId_1 = require("../RuleId");
|
|
61
|
-
var TriggerEffectsRule_1 = require("./TriggerEffectsRule");
|
|
62
|
-
var AthenaEffectRule = (function (_super) {
|
|
63
|
-
__extends(AthenaEffectRule, _super);
|
|
64
|
-
function AthenaEffectRule() {
|
|
65
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
66
|
-
_this.ruleId = RuleId_1.RuleId.AthenaEffect;
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
AthenaEffectRule.prototype.onRuleStart = function () {
|
|
70
|
-
var e_1, _a;
|
|
71
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
72
|
-
var lockedLocations = [];
|
|
73
|
-
try {
|
|
74
|
-
for (var _b = __values(pantheon.visibleEntities.getItems()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
75
|
-
var card = _c.value;
|
|
76
|
-
if (!pantheon.isAbleToMove(card)) {
|
|
77
|
-
lockedLocations.push({ x: card.location.x, y: card.location.y });
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
this.memorize(Memory_1.Memory.TargetLocations, lockedLocations);
|
|
89
|
-
return _super.prototype.onRuleStart.call(this);
|
|
90
|
-
};
|
|
91
|
-
AthenaEffectRule.prototype.getPlayerMoves = function () {
|
|
92
|
-
var e_2, _a;
|
|
93
|
-
var moves = [];
|
|
94
|
-
var legalSpaces = new Pantheon_1.Pantheon(this.game, this.player).legalSpaces;
|
|
95
|
-
var piles = new Pantheon_1.Pantheon(this.game, this.player).getPiles();
|
|
96
|
-
var lockedLocations = this.remind(Memory_1.Memory.TargetLocations);
|
|
97
|
-
var _loop_1 = function (pile) {
|
|
98
|
-
var e_3, _b;
|
|
99
|
-
var location = pile.getItem().location;
|
|
100
|
-
if (!lockedLocations.some(function (_a) {
|
|
101
|
-
var x = _a.x, y = _a.y;
|
|
102
|
-
return x === location.x && y === location.y;
|
|
103
|
-
})) {
|
|
104
|
-
try {
|
|
105
|
-
for (var legalSpaces_1 = (e_3 = void 0, __values(legalSpaces)), legalSpaces_1_1 = legalSpaces_1.next(); !legalSpaces_1_1.done; legalSpaces_1_1 = legalSpaces_1.next()) {
|
|
106
|
-
var _c = legalSpaces_1_1.value, x = _c.x, y = _c.y;
|
|
107
|
-
if (x !== location.x || y !== location.y) {
|
|
108
|
-
moves.push(pile.moveItemsAtOnce({ type: LocationType_1.LocationType.Pantheon, player: this_1.player, x: x, y: y }));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
113
|
-
finally {
|
|
114
|
-
try {
|
|
115
|
-
if (legalSpaces_1_1 && !legalSpaces_1_1.done && (_b = legalSpaces_1.return)) _b.call(legalSpaces_1);
|
|
116
|
-
}
|
|
117
|
-
finally { if (e_3) throw e_3.error; }
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
var this_1 = this;
|
|
122
|
-
try {
|
|
123
|
-
for (var piles_1 = __values(piles), piles_1_1 = piles_1.next(); !piles_1_1.done; piles_1_1 = piles_1.next()) {
|
|
124
|
-
var pile = piles_1_1.value;
|
|
125
|
-
_loop_1(pile);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
129
|
-
finally {
|
|
130
|
-
try {
|
|
131
|
-
if (piles_1_1 && !piles_1_1.done && (_a = piles_1.return)) _a.call(piles_1);
|
|
132
|
-
}
|
|
133
|
-
finally { if (e_2) throw e_2.error; }
|
|
134
|
-
}
|
|
135
|
-
moves.push(this.customMove(CustomMoveType_1.CustomMoveType.EndEffect));
|
|
136
|
-
return moves;
|
|
137
|
-
};
|
|
138
|
-
AthenaEffectRule.prototype.onEndEffect = function () {
|
|
139
|
-
var _a;
|
|
140
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
141
|
-
(_a = new TriggerEffectsRule_1.TriggerEffectsRule(this.game)).triggerEffects.apply(_a, __spreadArray([], __read(pantheon.updateGrid()), false));
|
|
142
|
-
return pantheon.gainBonus().concat(_super.prototype.onEndEffect.call(this));
|
|
143
|
-
};
|
|
144
|
-
AthenaEffectRule.prototype.onRuleEnd = function () {
|
|
145
|
-
this.forget(Memory_1.Memory.TargetLocations);
|
|
146
|
-
return [];
|
|
147
|
-
};
|
|
148
|
-
return AthenaEffectRule;
|
|
149
|
-
}(PlayerEffectRule_1.PlayerEffectRule));
|
|
150
|
-
exports.AthenaEffectRule = AthenaEffectRule;
|
|
1
|
+
import { CustomMoveType } from '../../CustomMoveType';
|
|
2
|
+
import { PlayerEffectRule } from '../../material/entity/PlayerEffectRule';
|
|
3
|
+
import { LocationType } from '../../material/LocationType';
|
|
4
|
+
import { Pantheon } from '../../material/Pantheon';
|
|
5
|
+
import { Memory } from '../../Memory';
|
|
6
|
+
import { RuleId } from '../RuleId';
|
|
7
|
+
import { TriggerEffectsRule } from './TriggerEffectsRule';
|
|
8
|
+
export class AthenaEffectRule extends PlayerEffectRule {
|
|
9
|
+
ruleId = RuleId.AthenaEffect;
|
|
10
|
+
onRuleStart() {
|
|
11
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
12
|
+
const lockedLocations = [];
|
|
13
|
+
for (const card of pantheon.visibleEntities.getItems()) {
|
|
14
|
+
if (!pantheon.isAbleToMove(card)) {
|
|
15
|
+
lockedLocations.push({ x: card.location.x, y: card.location.y });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
this.memorize(Memory.TargetLocations, lockedLocations);
|
|
19
|
+
return super.onRuleStart();
|
|
20
|
+
}
|
|
21
|
+
getPlayerMoves() {
|
|
22
|
+
const moves = [];
|
|
23
|
+
const legalSpaces = new Pantheon(this.game, this.player).legalSpaces;
|
|
24
|
+
const piles = new Pantheon(this.game, this.player).getPiles();
|
|
25
|
+
const lockedLocations = this.remind(Memory.TargetLocations);
|
|
26
|
+
for (const pile of piles) {
|
|
27
|
+
const location = pile.getItem().location;
|
|
28
|
+
if (!lockedLocations.some(({ x, y }) => x === location.x && y === location.y)) {
|
|
29
|
+
for (const { x, y } of legalSpaces) {
|
|
30
|
+
if (x !== location.x || y !== location.y) {
|
|
31
|
+
moves.push(pile.moveItemsAtOnce({ type: LocationType.Pantheon, player: this.player, x, y }));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
moves.push(this.customMove(CustomMoveType.EndEffect));
|
|
37
|
+
return moves;
|
|
38
|
+
}
|
|
39
|
+
onEndEffect() {
|
|
40
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
41
|
+
new TriggerEffectsRule(this.game).triggerEffects(...pantheon.updateGrid());
|
|
42
|
+
return [...pantheon.gainBonus(), ...super.onEndEffect()];
|
|
43
|
+
}
|
|
44
|
+
onRuleEnd() {
|
|
45
|
+
this.forget(Memory.TargetLocations);
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PlaceCardEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
2
|
-
import { RuleId } from '../RuleId';
|
|
3
|
-
export declare class BennuEffectRule extends PlaceCardEffectRule {
|
|
4
|
-
ruleId: RuleId;
|
|
5
|
-
getCardsToPlace(): import("@gamepark/rules-api").Material<number, number, number>;
|
|
6
|
-
}
|
|
1
|
+
import { PlaceCardEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
2
|
+
import { RuleId } from '../RuleId';
|
|
3
|
+
export declare class BennuEffectRule extends PlaceCardEffectRule {
|
|
4
|
+
ruleId: RuleId;
|
|
5
|
+
getCardsToPlace(): import("@gamepark/rules-api").Material<number, number, number>;
|
|
6
|
+
}
|
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.BennuEffectRule = void 0;
|
|
19
|
-
var PlaceCardEffectRule_1 = require("../../material/entity/PlaceCardEffectRule");
|
|
20
|
-
var LocationType_1 = require("../../material/LocationType");
|
|
21
|
-
var MaterialType_1 = require("../../material/MaterialType");
|
|
22
|
-
var RuleId_1 = require("../RuleId");
|
|
23
|
-
var BennuEffectRule = (function (_super) {
|
|
24
|
-
__extends(BennuEffectRule, _super);
|
|
25
|
-
function BennuEffectRule() {
|
|
26
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
_this.ruleId = RuleId_1.RuleId.BennuEffect;
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
BennuEffectRule.prototype.getCardsToPlace = function () {
|
|
31
|
-
return this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.PlayerDiscard);
|
|
32
|
-
};
|
|
33
|
-
return BennuEffectRule;
|
|
34
|
-
}(PlaceCardEffectRule_1.PlaceCardEffectRule));
|
|
35
|
-
exports.BennuEffectRule = BennuEffectRule;
|
|
1
|
+
import { PlaceCardEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
2
|
+
import { LocationType } from '../../material/LocationType';
|
|
3
|
+
import { MaterialType } from '../../material/MaterialType';
|
|
4
|
+
import { RuleId } from '../RuleId';
|
|
5
|
+
export class BennuEffectRule extends PlaceCardEffectRule {
|
|
6
|
+
ruleId = RuleId.BennuEffect;
|
|
7
|
+
getCardsToPlace() {
|
|
8
|
+
return this.material(MaterialType.EntityCard).location(LocationType.PlayerDiscard);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MoveItem } from '@gamepark/rules-api';
|
|
2
|
-
import { SacrificeEffectRule } from '../../material/entity/SacrificeEffectRule';
|
|
3
|
-
import { RuleId } from '../RuleId';
|
|
4
|
-
export declare class CaimanEffectRule extends SacrificeEffectRule {
|
|
5
|
-
ruleId: RuleId;
|
|
6
|
-
onSacrifice(move: MoveItem): (import("@gamepark/rules-api").CustomMove
|
|
7
|
-
}
|
|
1
|
+
import { MoveItem } from '@gamepark/rules-api';
|
|
2
|
+
import { SacrificeEffectRule } from '../../material/entity/SacrificeEffectRule';
|
|
3
|
+
import { RuleId } from '../RuleId';
|
|
4
|
+
export declare class CaimanEffectRule extends SacrificeEffectRule {
|
|
5
|
+
ruleId: RuleId;
|
|
6
|
+
onSacrifice(move: MoveItem): (import("@gamepark/rules-api").CustomMove | import("@gamepark/rules-api").CreateItem<number, number, number> | MoveItem<number, number, number>)[];
|
|
7
|
+
}
|
|
@@ -1,72 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
catch (error) { e = { error: error }; }
|
|
25
|
-
finally {
|
|
26
|
-
try {
|
|
27
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28
|
-
}
|
|
29
|
-
finally { if (e) throw e.error; }
|
|
30
|
-
}
|
|
31
|
-
return ar;
|
|
32
|
-
};
|
|
33
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
34
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.CaimanEffectRule = void 0;
|
|
44
|
-
var CustomMoveType_1 = require("../../CustomMoveType");
|
|
45
|
-
var Entity_1 = require("../../material/Entity");
|
|
46
|
-
var SacrificeEffectRule_1 = require("../../material/entity/SacrificeEffectRule");
|
|
47
|
-
var LocationType_1 = require("../../material/LocationType");
|
|
48
|
-
var MaterialType_1 = require("../../material/MaterialType");
|
|
49
|
-
var Pantheon_1 = require("../../material/Pantheon");
|
|
50
|
-
var RuleId_1 = require("../RuleId");
|
|
51
|
-
var CaimanEffectRule = (function (_super) {
|
|
52
|
-
__extends(CaimanEffectRule, _super);
|
|
53
|
-
function CaimanEffectRule() {
|
|
54
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
-
_this.ruleId = RuleId_1.RuleId.CaimanEffect;
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
CaimanEffectRule.prototype.onSacrifice = function (move) {
|
|
59
|
-
var card = this.material(MaterialType_1.MaterialType.EntityCard).getItem(move.itemIndex);
|
|
60
|
-
var mythology = (0, Entity_1.entityMythology)(card.id.front);
|
|
61
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
62
|
-
var others = pantheon.visibleEntities
|
|
63
|
-
.location(function (l) { return l.x !== card.location.x || l.y !== card.location.y; })
|
|
64
|
-
.id(function (id) { return (0, Entity_1.entityMythology)(id.front) === mythology; });
|
|
65
|
-
return __spreadArray(__spreadArray([], __read(others.moveItems({ type: LocationType_1.LocationType.PlayerDiscard, player: this.player })), false), [
|
|
66
|
-
pantheon.gainGems(1 + others.length),
|
|
67
|
-
this.customMove(CustomMoveType_1.CustomMoveType.EndEffect)
|
|
68
|
-
], false);
|
|
69
|
-
};
|
|
70
|
-
return CaimanEffectRule;
|
|
71
|
-
}(SacrificeEffectRule_1.SacrificeEffectRule));
|
|
72
|
-
exports.CaimanEffectRule = CaimanEffectRule;
|
|
1
|
+
import { CustomMoveType } from '../../CustomMoveType';
|
|
2
|
+
import { entityMythology } from '../../material/Entity';
|
|
3
|
+
import { SacrificeEffectRule } from '../../material/entity/SacrificeEffectRule';
|
|
4
|
+
import { LocationType } from '../../material/LocationType';
|
|
5
|
+
import { MaterialType } from '../../material/MaterialType';
|
|
6
|
+
import { Pantheon } from '../../material/Pantheon';
|
|
7
|
+
import { RuleId } from '../RuleId';
|
|
8
|
+
export class CaimanEffectRule extends SacrificeEffectRule {
|
|
9
|
+
ruleId = RuleId.CaimanEffect;
|
|
10
|
+
onSacrifice(move) {
|
|
11
|
+
const card = this.material(MaterialType.EntityCard).getItem(move.itemIndex);
|
|
12
|
+
const mythology = entityMythology(card.id.front);
|
|
13
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
14
|
+
const others = pantheon.visibleEntities
|
|
15
|
+
.location((l) => l.x !== card.location.x || l.y !== card.location.y)
|
|
16
|
+
.id((id) => entityMythology(id.front) === mythology);
|
|
17
|
+
return [
|
|
18
|
+
...others.moveItems({ type: LocationType.PlayerDiscard, player: this.player }),
|
|
19
|
+
pantheon.gainGems(1 + others.length),
|
|
20
|
+
this.customMove(CustomMoveType.EndEffect)
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Location, Material, MaterialMove, XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
-
import { MoveEffectRule } from '../../material/entity/MoveEffectRule';
|
|
3
|
-
import { SimultaneousSacrificeEffectRule } from '../../material/entity/SimultaneousSacrificeEffectRule';
|
|
4
|
-
import { PlayerColor } from '../../PlayerColor';
|
|
5
|
-
import { RuleId } from '../RuleId';
|
|
6
|
-
export declare class CentaurEffectRule extends MoveEffectRule {
|
|
7
|
-
ruleId: RuleId;
|
|
8
|
-
getMovingCards(effectCardIndex?: number): Material;
|
|
9
|
-
isLegalDestination(space: XYCoordinates, cardLocation: Location): boolean;
|
|
10
|
-
onEndEffect(): MaterialMove
|
|
11
|
-
}
|
|
12
|
-
export declare class CentaurEffectSacrificeRule extends SimultaneousSacrificeEffectRule {
|
|
13
|
-
ruleId: RuleId;
|
|
14
|
-
getCardsToSacrifice(player: PlayerColor): Material;
|
|
15
|
-
}
|
|
1
|
+
import { Location, Material, MaterialMove, XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
+
import { MoveEffectRule } from '../../material/entity/MoveEffectRule';
|
|
3
|
+
import { SimultaneousSacrificeEffectRule } from '../../material/entity/SimultaneousSacrificeEffectRule';
|
|
4
|
+
import { PlayerColor } from '../../PlayerColor';
|
|
5
|
+
import { RuleId } from '../RuleId';
|
|
6
|
+
export declare class CentaurEffectRule extends MoveEffectRule {
|
|
7
|
+
ruleId: RuleId;
|
|
8
|
+
getMovingCards(effectCardIndex?: number): Material;
|
|
9
|
+
isLegalDestination(space: XYCoordinates, cardLocation: Location): boolean;
|
|
10
|
+
onEndEffect(): MaterialMove[];
|
|
11
|
+
}
|
|
12
|
+
export declare class CentaurEffectSacrificeRule extends SimultaneousSacrificeEffectRule {
|
|
13
|
+
ruleId: RuleId;
|
|
14
|
+
getCardsToSacrifice(player: PlayerColor): Material;
|
|
15
|
+
}
|
|
@@ -1,95 +1,36 @@
|
|
|
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
|
-
ar[i] = from[i];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
-
};
|
|
42
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.CentaurEffectSacrificeRule = exports.CentaurEffectRule = void 0;
|
|
44
|
-
var rules_api_1 = require("@gamepark/rules-api");
|
|
45
|
-
var Entity_1 = require("../../material/Entity");
|
|
46
|
-
var MoveEffectRule_1 = require("../../material/entity/MoveEffectRule");
|
|
47
|
-
var SimultaneousSacrificeEffectRule_1 = require("../../material/entity/SimultaneousSacrificeEffectRule");
|
|
48
|
-
var MaterialType_1 = require("../../material/MaterialType");
|
|
49
|
-
var Pantheon_1 = require("../../material/Pantheon");
|
|
50
|
-
var Memory_1 = require("../../Memory");
|
|
51
|
-
var RuleId_1 = require("../RuleId");
|
|
52
|
-
var TriggerEffectsRule_1 = require("./TriggerEffectsRule");
|
|
53
|
-
var CentaurEffectRule = (function (_super) {
|
|
54
|
-
__extends(CentaurEffectRule, _super);
|
|
55
|
-
function CentaurEffectRule() {
|
|
56
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
-
_this.ruleId = RuleId_1.RuleId.CentaurEffect;
|
|
58
|
-
return _this;
|
|
59
|
-
}
|
|
60
|
-
CentaurEffectRule.prototype.getMovingCards = function (effectCardIndex) {
|
|
61
|
-
if (effectCardIndex === void 0) { effectCardIndex = this.getEffect().cardIndex; }
|
|
62
|
-
return this.material(MaterialType_1.MaterialType.EntityCard).index(effectCardIndex);
|
|
63
|
-
};
|
|
64
|
-
CentaurEffectRule.prototype.isLegalDestination = function (space, cardLocation) {
|
|
65
|
-
return (0, rules_api_1.areAdjacentSquares)(space, cardLocation);
|
|
66
|
-
};
|
|
67
|
-
CentaurEffectRule.prototype.onEndEffect = function () {
|
|
68
|
-
var _a;
|
|
69
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
70
|
-
(_a = new TriggerEffectsRule_1.TriggerEffectsRule(this.game)).triggerEffects.apply(_a, __spreadArray([], __read(pantheon.updateGrid()), false));
|
|
71
|
-
var moves = pantheon.gainBonus();
|
|
72
|
-
moves.push.apply(moves, __spreadArray([], __read(new CentaurEffectSacrificeRule(this.game).playEffect()), false));
|
|
73
|
-
return moves;
|
|
74
|
-
};
|
|
75
|
-
return CentaurEffectRule;
|
|
76
|
-
}(MoveEffectRule_1.MoveEffectRule));
|
|
77
|
-
exports.CentaurEffectRule = CentaurEffectRule;
|
|
78
|
-
var CentaurEffectSacrificeRule = (function (_super) {
|
|
79
|
-
__extends(CentaurEffectSacrificeRule, _super);
|
|
80
|
-
function CentaurEffectSacrificeRule() {
|
|
81
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
82
|
-
_this.ruleId = RuleId_1.RuleId.CentaurEffectSacrifice;
|
|
83
|
-
return _this;
|
|
84
|
-
}
|
|
85
|
-
CentaurEffectSacrificeRule.prototype.getCardsToSacrifice = function (player) {
|
|
86
|
-
var _this = this;
|
|
87
|
-
var cardIndex = this.remind(Memory_1.Memory.OngoingEffect).cardIndex;
|
|
88
|
-
return _super.prototype.getCardsToSacrifice.call(this, player)
|
|
89
|
-
.index(function (index) { return index !== cardIndex; })
|
|
90
|
-
.id(function (id) { return (0, Entity_1.isCreature)(id.front); })
|
|
91
|
-
.location(function (l) { return l.y === _this.card.location.y; });
|
|
92
|
-
};
|
|
93
|
-
return CentaurEffectSacrificeRule;
|
|
94
|
-
}(SimultaneousSacrificeEffectRule_1.SimultaneousSacrificeEffectRule));
|
|
95
|
-
exports.CentaurEffectSacrificeRule = CentaurEffectSacrificeRule;
|
|
1
|
+
import { areAdjacentSquares } from '@gamepark/rules-api';
|
|
2
|
+
import { isCreature } from '../../material/Entity';
|
|
3
|
+
import { MoveEffectRule } from '../../material/entity/MoveEffectRule';
|
|
4
|
+
import { SimultaneousSacrificeEffectRule } from '../../material/entity/SimultaneousSacrificeEffectRule';
|
|
5
|
+
import { MaterialType } from '../../material/MaterialType';
|
|
6
|
+
import { Pantheon } from '../../material/Pantheon';
|
|
7
|
+
import { Memory } from '../../Memory';
|
|
8
|
+
import { RuleId } from '../RuleId';
|
|
9
|
+
import { TriggerEffectsRule } from './TriggerEffectsRule';
|
|
10
|
+
export class CentaurEffectRule extends MoveEffectRule {
|
|
11
|
+
ruleId = RuleId.CentaurEffect;
|
|
12
|
+
getMovingCards(effectCardIndex = this.getEffect().cardIndex) {
|
|
13
|
+
return this.material(MaterialType.EntityCard).index(effectCardIndex);
|
|
14
|
+
}
|
|
15
|
+
isLegalDestination(space, cardLocation) {
|
|
16
|
+
return areAdjacentSquares(space, cardLocation);
|
|
17
|
+
}
|
|
18
|
+
onEndEffect() {
|
|
19
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
20
|
+
new TriggerEffectsRule(this.game).triggerEffects(...pantheon.updateGrid());
|
|
21
|
+
const moves = pantheon.gainBonus();
|
|
22
|
+
moves.push(...new CentaurEffectSacrificeRule(this.game).playEffect());
|
|
23
|
+
return moves;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class CentaurEffectSacrificeRule extends SimultaneousSacrificeEffectRule {
|
|
27
|
+
ruleId = RuleId.CentaurEffectSacrifice;
|
|
28
|
+
getCardsToSacrifice(player) {
|
|
29
|
+
const cardIndex = this.remind(Memory.OngoingEffect).cardIndex;
|
|
30
|
+
return super
|
|
31
|
+
.getCardsToSacrifice(player)
|
|
32
|
+
.index((index) => index !== cardIndex)
|
|
33
|
+
.id((id) => isCreature(id.front))
|
|
34
|
+
.location((l) => l.y === this.card.location.y);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
-
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
3
|
-
import { RuleId } from '../RuleId';
|
|
4
|
-
export declare class ChimeraEffectRule extends InvokeEffectRule {
|
|
5
|
-
ruleId: RuleId;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { XYCoordinates } from '@gamepark/rules-api';
|
|
2
|
+
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
3
|
+
import { RuleId } from '../RuleId';
|
|
4
|
+
export declare class ChimeraEffectRule extends InvokeEffectRule {
|
|
5
|
+
ruleId: RuleId;
|
|
6
|
+
getCardsToPlace(): import("@gamepark/rules-api").Material<number, number, number>;
|
|
7
|
+
getAvailableDestinations(): XYCoordinates[];
|
|
8
|
+
}
|
|
@@ -1,44 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ChimeraEffectRule = void 0;
|
|
19
|
-
var Destiny_1 = require("../../material/Destiny");
|
|
20
|
-
var PlaceCardEffectRule_1 = require("../../material/entity/PlaceCardEffectRule");
|
|
21
|
-
var Pantheon_1 = require("../../material/Pantheon");
|
|
22
|
-
var RuleId_1 = require("../RuleId");
|
|
23
|
-
var ChimeraEffectRule = (function (_super) {
|
|
24
|
-
__extends(ChimeraEffectRule, _super);
|
|
25
|
-
function ChimeraEffectRule() {
|
|
26
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
_this.ruleId = RuleId_1.RuleId.ChimeraEffect;
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
ChimeraEffectRule.prototype.playEffect = function () {
|
|
31
|
-
var player = this.card.location.player;
|
|
32
|
-
return new Pantheon_1.Pantheon(this.game, player).hasCrushed(this.card) ? _super.prototype.playEffect.call(this) : [];
|
|
33
|
-
};
|
|
34
|
-
ChimeraEffectRule.prototype.getCardsToPlace = function () {
|
|
35
|
-
return new Destiny_1.Destiny(this.game).creaturesOnTopOfDecks;
|
|
36
|
-
};
|
|
37
|
-
ChimeraEffectRule.prototype.getAvailableDestinations = function () {
|
|
38
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.card.location.player);
|
|
39
|
-
var space = this.card.location;
|
|
40
|
-
return pantheon.isLegalSpaceToInvoke(space) ? [space] : [];
|
|
41
|
-
};
|
|
42
|
-
return ChimeraEffectRule;
|
|
43
|
-
}(PlaceCardEffectRule_1.InvokeEffectRule));
|
|
44
|
-
exports.ChimeraEffectRule = ChimeraEffectRule;
|
|
1
|
+
import { Destiny } from '../../material/Destiny';
|
|
2
|
+
import { InvokeEffectRule } from '../../material/entity/PlaceCardEffectRule';
|
|
3
|
+
import { Pantheon } from '../../material/Pantheon';
|
|
4
|
+
import { RuleId } from '../RuleId';
|
|
5
|
+
export class ChimeraEffectRule extends InvokeEffectRule {
|
|
6
|
+
ruleId = RuleId.ChimeraEffect;
|
|
7
|
+
getCardsToPlace() {
|
|
8
|
+
return new Destiny(this.game).creaturesOnTopOfDecks;
|
|
9
|
+
}
|
|
10
|
+
getAvailableDestinations() {
|
|
11
|
+
const pantheon = new Pantheon(this.game, this.card.location.player);
|
|
12
|
+
const space = this.card.location;
|
|
13
|
+
return pantheon.isLegalSpaceToInvoke(space) ? [space] : [];
|
|
14
|
+
}
|
|
15
|
+
}
|