@gamepark/mythologies 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CustomMoveType.d.ts +14 -14
- package/dist/CustomMoveType.js +11 -14
- package/dist/Memory.d.ts +14 -14
- package/dist/Memory.js +15 -18
- package/dist/MythologiesOptions.d.ts +12 -12
- package/dist/MythologiesOptions.js +22 -25
- package/dist/MythologiesRules.d.ts +158 -158
- package/dist/MythologiesRules.js +216 -244
- package/dist/MythologiesSetup.d.ts +17 -17
- package/dist/MythologiesSetup.js +84 -161
- package/dist/PlayerColor.d.ts +10 -10
- package/dist/PlayerColor.js +7 -10
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -9
- package/dist/material/Destiny.d.ts +15 -15
- package/dist/material/Destiny.js +91 -130
- package/dist/material/Entity.d.ts +102 -102
- package/dist/material/Entity.js +92 -99
- package/dist/material/LocationType.d.ts +28 -28
- package/dist/material/LocationType.js +29 -33
- package/dist/material/MaterialType.d.ts +13 -13
- package/dist/material/MaterialType.js +14 -17
- package/dist/material/Mythology.d.ts +18 -18
- package/dist/material/Mythology.js +16 -19
- package/dist/material/Pantheon.d.ts +50 -50
- package/dist/material/Pantheon.js +294 -484
- package/dist/material/Trial.d.ts +22 -22
- package/dist/material/Trial.js +139 -183
- package/dist/material/entity/AutoEffectRule.d.ts +11 -11
- package/dist/material/entity/AutoEffectRule.js +16 -49
- package/dist/material/entity/Effect.d.ts +106 -106
- package/dist/material/entity/Effect.js +26 -46
- package/dist/material/entity/EntityDescription.d.ts +13 -13
- package/dist/material/entity/EntityDescription.js +165 -170
- package/dist/material/entity/MoveEffectRule.d.ts +18 -18
- package/dist/material/entity/MoveEffectRule.js +73 -129
- package/dist/material/entity/PlaceCardEffectRule.d.ts +15 -15
- package/dist/material/entity/PlaceCardEffectRule.js +43 -78
- package/dist/material/entity/PlayerEffectRule.d.ts +14 -14
- package/dist/material/entity/PlayerEffectRule.js +36 -63
- package/dist/material/entity/SacrificeEffectRule.d.ts +11 -11
- package/dist/material/entity/SacrificeEffectRule.js +40 -64
- package/dist/material/entity/SimultaneousEffectRule.d.ts +18 -18
- package/dist/material/entity/SimultaneousEffectRule.js +64 -149
- package/dist/material/entity/SimultaneousMoveEffectRule.d.ts +17 -17
- package/dist/material/entity/SimultaneousMoveEffectRule.js +65 -141
- package/dist/material/entity/SimultaneousSacrificeEffectRule.d.ts +10 -10
- package/dist/material/entity/SimultaneousSacrificeEffectRule.js +31 -55
- package/dist/material/entity/celtic/Banshee.d.ts +2 -2
- package/dist/material/entity/celtic/Banshee.js +23 -46
- package/dist/material/entity/celtic/Brigid.d.ts +2 -2
- package/dist/material/entity/celtic/Brigid.js +17 -40
- package/dist/material/entity/celtic/Cernunnos.d.ts +2 -2
- package/dist/material/entity/celtic/Cernunnos.js +19 -43
- package/dist/material/entity/celtic/Dagda.d.ts +2 -2
- package/dist/material/entity/celtic/Dagda.js +26 -50
- package/dist/material/entity/celtic/Dullahan.d.ts +2 -2
- package/dist/material/entity/celtic/Dullahan.js +9 -12
- package/dist/material/entity/celtic/Fairy.d.ts +2 -2
- package/dist/material/entity/celtic/Fairy.js +9 -12
- package/dist/material/entity/celtic/Kelpie.d.ts +2 -2
- package/dist/material/entity/celtic/Kelpie.js +16 -39
- package/dist/material/entity/celtic/Leprechaun.d.ts +2 -2
- package/dist/material/entity/celtic/Leprechaun.js +9 -12
- package/dist/material/entity/celtic/Morrigan.d.ts +2 -2
- package/dist/material/entity/celtic/Morrigan.js +8 -11
- package/dist/material/entity/celtic/Selkie.d.ts +2 -2
- package/dist/material/entity/celtic/Selkie.js +14 -17
- package/dist/material/entity/chinese/ChangE.d.ts +2 -2
- package/dist/material/entity/chinese/ChangE.js +6 -9
- package/dist/material/entity/chinese/Fenghuang.d.ts +2 -2
- package/dist/material/entity/chinese/Fenghuang.js +10 -15
- package/dist/material/entity/chinese/Jiangshi.d.ts +2 -2
- package/dist/material/entity/chinese/Jiangshi.js +9 -12
- package/dist/material/entity/chinese/Mogwai.d.ts +2 -2
- package/dist/material/entity/chinese/Mogwai.js +18 -44
- package/dist/material/entity/chinese/Nian.d.ts +2 -2
- package/dist/material/entity/chinese/Nian.js +19 -42
- package/dist/material/entity/chinese/Nuwa.d.ts +2 -2
- package/dist/material/entity/chinese/Nuwa.js +9 -12
- package/dist/material/entity/chinese/Qilin.d.ts +2 -2
- package/dist/material/entity/chinese/Qilin.js +9 -12
- package/dist/material/entity/chinese/SunWukong.d.ts +2 -2
- package/dist/material/entity/chinese/SunWukong.js +17 -43
- package/dist/material/entity/chinese/Tianlong.d.ts +2 -2
- package/dist/material/entity/chinese/Tianlong.js +9 -12
- package/dist/material/entity/chinese/YanluoWang.d.ts +2 -2
- package/dist/material/entity/chinese/YanluoWang.js +9 -12
- package/dist/material/entity/egyptian/Ammit.d.ts +2 -2
- package/dist/material/entity/egyptian/Ammit.js +9 -12
- package/dist/material/entity/egyptian/Anubis.d.ts +2 -2
- package/dist/material/entity/egyptian/Anubis.js +9 -12
- package/dist/material/entity/egyptian/Beetle.d.ts +2 -2
- package/dist/material/entity/egyptian/Beetle.js +20 -43
- package/dist/material/entity/egyptian/Bennu.d.ts +2 -2
- package/dist/material/entity/egyptian/Bennu.js +9 -12
- package/dist/material/entity/egyptian/Cobra.d.ts +2 -2
- package/dist/material/entity/egyptian/Cobra.js +9 -12
- package/dist/material/entity/egyptian/Isis.d.ts +2 -2
- package/dist/material/entity/egyptian/Isis.js +15 -41
- package/dist/material/entity/egyptian/Mummy.d.ts +2 -2
- package/dist/material/entity/egyptian/Mummy.js +17 -40
- package/dist/material/entity/egyptian/Osiris.d.ts +2 -2
- package/dist/material/entity/egyptian/Osiris.js +24 -72
- package/dist/material/entity/egyptian/Ra.d.ts +2 -2
- package/dist/material/entity/egyptian/Ra.js +9 -12
- package/dist/material/entity/egyptian/Sphinx.d.ts +2 -2
- package/dist/material/entity/egyptian/Sphinx.js +9 -12
- package/dist/material/entity/greek/Athena.d.ts +2 -2
- package/dist/material/entity/greek/Athena.js +9 -12
- package/dist/material/entity/greek/Centaur.d.ts +2 -2
- package/dist/material/entity/greek/Centaur.js +9 -12
- package/dist/material/entity/greek/Chimera.d.ts +2 -2
- package/dist/material/entity/greek/Chimera.js +9 -12
- package/dist/material/entity/greek/Cyclops.d.ts +2 -2
- package/dist/material/entity/greek/Cyclops.js +15 -19
- package/dist/material/entity/greek/Gorgon.d.ts +2 -2
- package/dist/material/entity/greek/Gorgon.js +9 -12
- package/dist/material/entity/greek/Griffin.d.ts +2 -2
- package/dist/material/entity/greek/Griffin.js +9 -12
- package/dist/material/entity/greek/Hades.d.ts +2 -2
- package/dist/material/entity/greek/Hades.js +9 -12
- package/dist/material/entity/greek/Minotaur.d.ts +2 -2
- package/dist/material/entity/greek/Minotaur.js +9 -12
- package/dist/material/entity/greek/Poseidon.d.ts +2 -2
- package/dist/material/entity/greek/Poseidon.js +20 -46
- package/dist/material/entity/greek/Zeus.d.ts +2 -2
- package/dist/material/entity/greek/Zeus.js +17 -40
- package/dist/material/entity/hindu/Asura.d.ts +2 -2
- package/dist/material/entity/hindu/Asura.js +19 -67
- package/dist/material/entity/hindu/Brahma.d.ts +2 -2
- package/dist/material/entity/hindu/Brahma.js +14 -37
- package/dist/material/entity/hindu/Ganesh.d.ts +2 -2
- package/dist/material/entity/hindu/Ganesh.js +18 -41
- package/dist/material/entity/hindu/Garuda.d.ts +2 -2
- package/dist/material/entity/hindu/Garuda.js +9 -12
- package/dist/material/entity/hindu/Kinnara.d.ts +2 -2
- package/dist/material/entity/hindu/Kinnara.js +9 -12
- package/dist/material/entity/hindu/Naga.d.ts +2 -2
- package/dist/material/entity/hindu/Naga.js +29 -75
- package/dist/material/entity/hindu/Rakshasa.d.ts +2 -2
- package/dist/material/entity/hindu/Rakshasa.js +9 -12
- package/dist/material/entity/hindu/Shiva.d.ts +2 -2
- package/dist/material/entity/hindu/Shiva.js +9 -12
- package/dist/material/entity/hindu/Vetala.d.ts +2 -2
- package/dist/material/entity/hindu/Vetala.js +9 -12
- package/dist/material/entity/hindu/Vishnu.d.ts +2 -2
- package/dist/material/entity/hindu/Vishnu.js +20 -68
- package/dist/material/entity/inca/Amaru.d.ts +2 -2
- package/dist/material/entity/inca/Amaru.js +15 -38
- package/dist/material/entity/inca/Caiman.d.ts +2 -2
- package/dist/material/entity/inca/Caiman.js +9 -12
- package/dist/material/entity/inca/Condor.d.ts +2 -2
- package/dist/material/entity/inca/Condor.js +9 -12
- package/dist/material/entity/inca/Illapa.d.ts +2 -2
- package/dist/material/entity/inca/Illapa.js +9 -12
- package/dist/material/entity/inca/Inti.d.ts +2 -2
- package/dist/material/entity/inca/Inti.js +16 -39
- package/dist/material/entity/inca/MamaQucha.d.ts +2 -2
- package/dist/material/entity/inca/MamaQucha.js +20 -43
- package/dist/material/entity/inca/Puma.d.ts +2 -2
- package/dist/material/entity/inca/Puma.js +14 -40
- package/dist/material/entity/inca/Supay.d.ts +2 -2
- package/dist/material/entity/inca/Supay.js +9 -12
- package/dist/material/entity/inca/Ukuku.d.ts +2 -2
- package/dist/material/entity/inca/Ukuku.js +14 -18
- package/dist/material/entity/inca/Viracocha.d.ts +2 -2
- package/dist/material/entity/inca/Viracocha.js +9 -12
- package/dist/material/entity/norse/Alf.d.ts +2 -2
- package/dist/material/entity/norse/Alf.js +9 -12
- package/dist/material/entity/norse/Draugr.d.ts +2 -2
- package/dist/material/entity/norse/Draugr.js +9 -12
- package/dist/material/entity/norse/Fenrir.d.ts +2 -2
- package/dist/material/entity/norse/Fenrir.js +9 -12
- package/dist/material/entity/norse/Freya.d.ts +2 -2
- package/dist/material/entity/norse/Freya.js +17 -40
- package/dist/material/entity/norse/Jotunn.d.ts +2 -2
- package/dist/material/entity/norse/Jotunn.js +15 -38
- package/dist/material/entity/norse/Loki.d.ts +2 -2
- package/dist/material/entity/norse/Loki.js +14 -37
- package/dist/material/entity/norse/Odin.d.ts +2 -2
- package/dist/material/entity/norse/Odin.js +3 -6
- package/dist/material/entity/norse/Thor.d.ts +2 -2
- package/dist/material/entity/norse/Thor.js +9 -12
- package/dist/material/entity/norse/Troll.d.ts +2 -2
- package/dist/material/entity/norse/Troll.js +6 -9
- package/dist/material/entity/norse/Valkyrie.d.ts +2 -2
- package/dist/material/entity/norse/Valkyrie.js +27 -73
- package/dist/material/entity/zulu/Idlozi.d.ts +2 -2
- package/dist/material/entity/zulu/Idlozi.js +9 -12
- package/dist/material/entity/zulu/Impundulu.d.ts +2 -2
- package/dist/material/entity/zulu/Impundulu.js +9 -12
- package/dist/material/entity/zulu/Inkanyamba.d.ts +2 -2
- package/dist/material/entity/zulu/Inkanyamba.js +16 -42
- package/dist/material/entity/zulu/Inkosazana.d.ts +2 -2
- package/dist/material/entity/zulu/Inkosazana.js +9 -12
- package/dist/material/entity/zulu/Shembe.d.ts +2 -2
- package/dist/material/entity/zulu/Shembe.js +19 -44
- package/dist/material/entity/zulu/Tokoloshe.d.ts +2 -2
- package/dist/material/entity/zulu/Tokoloshe.js +24 -47
- package/dist/material/entity/zulu/Umvelinqangi.d.ts +2 -2
- package/dist/material/entity/zulu/Umvelinqangi.js +22 -45
- package/dist/material/entity/zulu/Unkulunkulu.d.ts +2 -2
- package/dist/material/entity/zulu/Unkulunkulu.js +20 -43
- package/dist/material/entity/zulu/Unwabu.d.ts +2 -2
- package/dist/material/entity/zulu/Unwabu.js +25 -49
- package/dist/material/entity/zulu/Werehyena.d.ts +2 -2
- package/dist/material/entity/zulu/Werehyena.js +9 -12
- package/dist/rules/ChooseDraftTokenRule.d.ts +15 -15
- package/dist/rules/ChooseDraftTokenRule.js +54 -103
- package/dist/rules/DrawDestinyCardRule.d.ts +7 -7
- package/dist/rules/DrawDestinyCardRule.js +44 -115
- package/dist/rules/EndGameRule.d.ts +5 -5
- package/dist/rules/EndGameRule.js +34 -105
- package/dist/rules/PlaceCardsRule.d.ts +14 -14
- package/dist/rules/PlaceCardsRule.js +107 -206
- package/dist/rules/PlaceTokenRule.d.ts +12 -12
- package/dist/rules/PlaceTokenRule.js +75 -151
- package/dist/rules/RuleId.d.ts +65 -65
- package/dist/rules/RuleId.js +66 -69
- package/dist/rules/UpkeepRule.d.ts +9 -9
- package/dist/rules/UpkeepRule.js +56 -154
- package/dist/rules/effects/AlfEffectRule.d.ts +10 -10
- package/dist/rules/effects/AlfEffectRule.js +33 -59
- package/dist/rules/effects/AmmitEffectRule.d.ts +6 -6
- package/dist/rules/effects/AmmitEffectRule.js +15 -40
- package/dist/rules/effects/AnubisEffectRule.d.ts +9 -9
- package/dist/rules/effects/AnubisEffectRule.js +24 -49
- package/dist/rules/effects/AthenaEffectRule.d.ts +10 -10
- package/dist/rules/effects/AthenaEffectRule.js +48 -150
- package/dist/rules/effects/BennuEffectRule.d.ts +6 -6
- package/dist/rules/effects/BennuEffectRule.js +10 -35
- package/dist/rules/effects/CaimanEffectRule.d.ts +7 -7
- package/dist/rules/effects/CaimanEffectRule.js +23 -72
- package/dist/rules/effects/CentaurEffectRule.d.ts +15 -15
- package/dist/rules/effects/CentaurEffectRule.js +36 -95
- package/dist/rules/effects/ChimeraEffectRule.d.ts +8 -8
- package/dist/rules/effects/ChimeraEffectRule.js +15 -40
- package/dist/rules/effects/CobraEffectRule.d.ts +13 -13
- package/dist/rules/effects/CobraEffectRule.js +30 -61
- package/dist/rules/effects/CondorEffectRule.d.ts +8 -8
- package/dist/rules/effects/CondorEffectRule.js +20 -45
- package/dist/rules/effects/CyclopsEffectRule.d.ts +11 -11
- package/dist/rules/effects/CyclopsEffectRule.js +50 -106
- package/dist/rules/effects/DraugrEffectRule.d.ts +11 -11
- package/dist/rules/effects/DraugrEffectRule.js +32 -58
- package/dist/rules/effects/DullahanEffectRule.d.ts +11 -11
- package/dist/rules/effects/DullahanEffectRule.js +48 -73
- package/dist/rules/effects/FairyEffectRule.d.ts +10 -10
- package/dist/rules/effects/FairyEffectRule.js +33 -55
- package/dist/rules/effects/FenghuangEffectRule.d.ts +8 -8
- package/dist/rules/effects/FenghuangEffectRule.js +18 -48
- package/dist/rules/effects/FenrirEffectRule.d.ts +16 -16
- package/dist/rules/effects/FenrirEffectRule.js +85 -139
- package/dist/rules/effects/GarudaEffectRule.d.ts +16 -16
- package/dist/rules/effects/GarudaEffectRule.js +55 -113
- package/dist/rules/effects/GorgonEffectRule.d.ts +7 -7
- package/dist/rules/effects/GorgonEffectRule.js +15 -40
- package/dist/rules/effects/GriffinEffectRule.d.ts +9 -9
- package/dist/rules/effects/GriffinEffectRule.js +16 -41
- package/dist/rules/effects/HadesEffectRule.d.ts +9 -9
- package/dist/rules/effects/HadesEffectRule.js +14 -39
- package/dist/rules/effects/IdloziEffectRule.d.ts +9 -9
- package/dist/rules/effects/IdloziEffectRule.js +21 -46
- package/dist/rules/effects/IllapaEffectRule.d.ts +16 -16
- package/dist/rules/effects/IllapaEffectRule.js +43 -76
- package/dist/rules/effects/ImpunduluEffectRule.d.ts +10 -10
- package/dist/rules/effects/ImpunduluEffectRule.js +39 -77
- package/dist/rules/effects/InkosazanaEffectRule.d.ts +7 -7
- package/dist/rules/effects/InkosazanaEffectRule.js +21 -46
- package/dist/rules/effects/JiangshiEffectRule.d.ts +8 -8
- package/dist/rules/effects/JiangshiEffectRule.js +25 -51
- package/dist/rules/effects/KinnaraEffectRule.d.ts +13 -13
- package/dist/rules/effects/KinnaraEffectRule.js +42 -95
- package/dist/rules/effects/LeprechaunEffectRule.d.ts +9 -9
- package/dist/rules/effects/LeprechaunEffectRule.js +23 -49
- package/dist/rules/effects/MinotaurEffectRule.d.ts +11 -11
- package/dist/rules/effects/MinotaurEffectRule.js +23 -49
- package/dist/rules/effects/MultipleSimultaneousMoveEffectRule.d.ts +14 -14
- package/dist/rules/effects/MultipleSimultaneousMoveEffectRule.js +71 -144
- package/dist/rules/effects/NuwaEffectRule.d.ts +14 -14
- package/dist/rules/effects/NuwaEffectRule.js +57 -106
- package/dist/rules/effects/OdinEffectRule.d.ts +11 -11
- package/dist/rules/effects/OdinEffectRule.js +27 -52
- package/dist/rules/effects/PermanentEffectsRule.d.ts +7 -7
- package/dist/rules/effects/PermanentEffectsRule.js +21 -54
- package/dist/rules/effects/QilinEffectRule.d.ts +8 -8
- package/dist/rules/effects/QilinEffectRule.js +40 -115
- package/dist/rules/effects/RaEffectRule.d.ts +9 -9
- package/dist/rules/effects/RaEffectRule.js +14 -39
- package/dist/rules/effects/RakshasaEffectRule.d.ts +13 -13
- package/dist/rules/effects/RakshasaEffectRule.js +23 -48
- package/dist/rules/effects/ResolveEffectsRule.d.ts +12 -12
- package/dist/rules/effects/ResolveEffectsRule.js +87 -141
- package/dist/rules/effects/SelkieEffectRule.d.ts +8 -8
- package/dist/rules/effects/SelkieEffectRule.js +19 -44
- package/dist/rules/effects/ShivaEffectRule.d.ts +10 -10
- package/dist/rules/effects/ShivaEffectRule.js +35 -61
- package/dist/rules/effects/SphinxEffectRule.d.ts +10 -10
- package/dist/rules/effects/SphinxEffectRule.js +33 -58
- package/dist/rules/effects/SupayEffectRule.d.ts +20 -20
- package/dist/rules/effects/SupayEffectRule.js +44 -81
- package/dist/rules/effects/ThorEffectRule.d.ts +11 -11
- package/dist/rules/effects/ThorEffectRule.js +32 -58
- package/dist/rules/effects/TianlongEffectRule.d.ts +17 -17
- package/dist/rules/effects/TianlongEffectRule.js +47 -105
- package/dist/rules/effects/TriggerEffectsRule.d.ts +11 -11
- package/dist/rules/effects/TriggerEffectsRule.js +65 -183
- package/dist/rules/effects/UkukuEffectRule.d.ts +14 -14
- package/dist/rules/effects/UkukuEffectRule.js +35 -66
- package/dist/rules/effects/VetalaEffectRule.d.ts +12 -12
- package/dist/rules/effects/VetalaEffectRule.js +37 -62
- package/dist/rules/effects/ViracochaEffectRule.d.ts +7 -7
- package/dist/rules/effects/ViracochaEffectRule.js +15 -40
- package/dist/rules/effects/WerehyenaEffectRule.d.ts +8 -8
- package/dist/rules/effects/WerehyenaEffectRule.js +37 -98
- package/dist/rules/effects/YanluoWangEffectRule.d.ts +9 -9
- package/dist/rules/effects/YanluoWangEffectRule.js +46 -104
- package/package.json +7 -8
|
@@ -1,67 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var i = m.call(o), r, ar = [], e;
|
|
21
|
-
try {
|
|
22
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
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.Asura = void 0;
|
|
44
|
-
var Destiny_1 = require("../../Destiny");
|
|
45
|
-
var Pantheon_1 = require("../../Pantheon");
|
|
46
|
-
var Effect_1 = require("../Effect");
|
|
47
|
-
var PlayerEffectRule_1 = require("../PlayerEffectRule");
|
|
48
|
-
exports.Asura = {
|
|
49
|
-
invoke: [{ gem: 1, favor: 1 }, {}, { favor: 1 }],
|
|
50
|
-
effect: {
|
|
51
|
-
trigger: Effect_1.isPlaced,
|
|
52
|
-
rule: (function (_super) {
|
|
53
|
-
__extends(AsuraEffectRule, _super);
|
|
54
|
-
function AsuraEffectRule() {
|
|
55
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
56
|
-
}
|
|
57
|
-
AsuraEffectRule.prototype.playEffect = function () {
|
|
58
|
-
var cardsToExile = new Destiny_1.Destiny(this.game).getAvailableCardsOnBoard(this.player);
|
|
59
|
-
if (!cardsToExile.length)
|
|
60
|
-
return [];
|
|
61
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
62
|
-
return __spreadArray(__spreadArray([], __read(cardsToExile.deleteItems()), false), [pantheon.gainGems(cardsToExile.length)], false);
|
|
63
|
-
};
|
|
64
|
-
return AsuraEffectRule;
|
|
65
|
-
}(PlayerEffectRule_1.PlayerEffectRule))
|
|
66
|
-
}
|
|
67
|
-
};
|
|
1
|
+
import { Destiny } from '../../Destiny';
|
|
2
|
+
import { Pantheon } from '../../Pantheon';
|
|
3
|
+
import { isPlaced } from '../Effect';
|
|
4
|
+
import { PlayerEffectRule } from '../PlayerEffectRule';
|
|
5
|
+
export const Asura = {
|
|
6
|
+
invoke: [{ gem: 1, favor: 1 }, {}, { favor: 1 }],
|
|
7
|
+
effect: {
|
|
8
|
+
trigger: isPlaced,
|
|
9
|
+
rule: class AsuraEffectRule extends PlayerEffectRule {
|
|
10
|
+
playEffect() {
|
|
11
|
+
const cardsToExile = new Destiny(this.game).getAvailableCardsOnBoard(this.player);
|
|
12
|
+
if (!cardsToExile.length)
|
|
13
|
+
return [];
|
|
14
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
15
|
+
return [...cardsToExile.deleteItems(), pantheon.gainGems(cardsToExile.length)];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Brahma: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Brahma: EntityDescription;
|
|
@@ -1,37 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Brahma = void 0;
|
|
19
|
-
var Pantheon_1 = require("../../Pantheon");
|
|
20
|
-
var Effect_1 = require("../Effect");
|
|
21
|
-
var PlayerEffectRule_1 = require("../PlayerEffectRule");
|
|
22
|
-
exports.Brahma = {
|
|
23
|
-
invoke: [{ gem: 1, favor: 1 }, {}, { gem: 1 }],
|
|
24
|
-
effect: {
|
|
25
|
-
trigger: function (event) { return event.type === Effect_1.TriggerEventType.EntitySacrificed; },
|
|
26
|
-
rule: (function (_super) {
|
|
27
|
-
__extends(BrahmaEffectRule, _super);
|
|
28
|
-
function BrahmaEffectRule() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
31
|
-
BrahmaEffectRule.prototype.playEffect = function () {
|
|
32
|
-
return [new Pantheon_1.Pantheon(this.game, this.player).gainGems(2)];
|
|
33
|
-
};
|
|
34
|
-
return BrahmaEffectRule;
|
|
35
|
-
}(PlayerEffectRule_1.PlayerEffectRule))
|
|
36
|
-
}
|
|
37
|
-
};
|
|
1
|
+
import { Pantheon } from '../../Pantheon';
|
|
2
|
+
import { TriggerEventType } from '../Effect';
|
|
3
|
+
import { PlayerEffectRule } from '../PlayerEffectRule';
|
|
4
|
+
export const Brahma = {
|
|
5
|
+
invoke: [{ gem: 1, favor: 1 }, {}, { gem: 1 }],
|
|
6
|
+
effect: {
|
|
7
|
+
trigger: (event) => event.type === TriggerEventType.EntitySacrificed,
|
|
8
|
+
rule: class BrahmaEffectRule extends PlayerEffectRule {
|
|
9
|
+
playEffect() {
|
|
10
|
+
return [new Pantheon(this.game, this.player).gainGems(2)];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Ganesh: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Ganesh: EntityDescription;
|
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var LocationType_1 = require("../../LocationType");
|
|
20
|
-
var MaterialType_1 = require("../../MaterialType");
|
|
21
|
-
var Pantheon_1 = require("../../Pantheon");
|
|
22
|
-
var Effect_1 = require("../Effect");
|
|
23
|
-
var PlayerEffectRule_1 = require("../PlayerEffectRule");
|
|
24
|
-
exports.Ganesh = {
|
|
25
|
-
invoke: [{ gem: 1 }, { gem: 1 }, {}],
|
|
26
|
-
effect: {
|
|
27
|
-
trigger: Effect_1.isEndOfGame,
|
|
28
|
-
rule: (function (_super) {
|
|
29
|
-
__extends(GaneshEffectRule, _super);
|
|
30
|
-
function GaneshEffectRule() {
|
|
31
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
-
}
|
|
33
|
-
GaneshEffectRule.prototype.playEffect = function () {
|
|
34
|
-
var cardsInDiscard = this.material(MaterialType_1.MaterialType.EntityCard).location(LocationType_1.LocationType.PlayerDiscard).player(this.player).length;
|
|
35
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
36
|
-
return cardsInDiscard > 0 ? [pantheon.gainFavor(Math.min(cardsInDiscard, 5))] : [];
|
|
37
|
-
};
|
|
38
|
-
return GaneshEffectRule;
|
|
39
|
-
}(PlayerEffectRule_1.PlayerEffectRule))
|
|
40
|
-
}
|
|
41
|
-
};
|
|
1
|
+
import { LocationType } from '../../LocationType';
|
|
2
|
+
import { MaterialType } from '../../MaterialType';
|
|
3
|
+
import { Pantheon } from '../../Pantheon';
|
|
4
|
+
import { isEndOfGame } from '../Effect';
|
|
5
|
+
import { PlayerEffectRule } from '../PlayerEffectRule';
|
|
6
|
+
export const Ganesh = {
|
|
7
|
+
invoke: [{ gem: 1 }, { gem: 1 }, {}],
|
|
8
|
+
effect: {
|
|
9
|
+
trigger: isEndOfGame,
|
|
10
|
+
rule: class GaneshEffectRule extends PlayerEffectRule {
|
|
11
|
+
playEffect() {
|
|
12
|
+
const cardsInDiscard = this.material(MaterialType.EntityCard).location(LocationType.PlayerDiscard).player(this.player).length;
|
|
13
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
14
|
+
return cardsInDiscard > 0 ? [pantheon.gainFavor(Math.min(cardsInDiscard, 5))] : [];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Garuda: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Garuda: EntityDescription;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
rule: GarudaEffectRule_1.GarudaEffectRule
|
|
11
|
-
}
|
|
12
|
-
};
|
|
1
|
+
import { GarudaEffectRule } from '../../../rules/effects/GarudaEffectRule';
|
|
2
|
+
import { isPlaced } from '../Effect';
|
|
3
|
+
export const Garuda = {
|
|
4
|
+
invoke: [{ favor: 1 }, {}, {}],
|
|
5
|
+
effect: {
|
|
6
|
+
trigger: isPlaced,
|
|
7
|
+
rule: GarudaEffectRule
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Kinnara: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Kinnara: EntityDescription;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
rule: KinnaraEffectRule_1.KinnaraEffectRule
|
|
11
|
-
}
|
|
12
|
-
};
|
|
1
|
+
import { KinnaraEffectRule } from '../../../rules/effects/KinnaraEffectRule';
|
|
2
|
+
import { isPlaced } from '../Effect';
|
|
3
|
+
export const Kinnara = {
|
|
4
|
+
invoke: [{ gem: 1 }, { gem: 1 }, {}],
|
|
5
|
+
effect: {
|
|
6
|
+
trigger: isPlaced,
|
|
7
|
+
rule: KinnaraEffectRule
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Naga: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Naga: EntityDescription;
|
|
@@ -1,75 +1,29 @@
|
|
|
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
|
-
var rules_api_1 = require("@gamepark/rules-api");
|
|
31
|
-
var LocationType_1 = require("../../LocationType");
|
|
32
|
-
var MaterialType_1 = require("../../MaterialType");
|
|
33
|
-
var Effect_1 = require("../Effect");
|
|
34
|
-
var PlayerEffectRule_1 = require("../PlayerEffectRule");
|
|
35
|
-
exports.Naga = {
|
|
36
|
-
invoke: [{}, { gem: 2 }, { gem: 1 }],
|
|
37
|
-
effects: [
|
|
38
|
-
{
|
|
39
|
-
preventMove: function (card, naga) { return naga.location.player === card.location.player && (0, rules_api_1.areAdjacentSquares)(naga.location, card.location); }
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
trigger: Effect_1.isCrushed,
|
|
43
|
-
rule: (function (_super) {
|
|
44
|
-
__extends(NagaEffectRule, _super);
|
|
45
|
-
function NagaEffectRule() {
|
|
46
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
-
}
|
|
48
|
-
NagaEffectRule.prototype.playEffect = function () {
|
|
49
|
-
var e_1, _a;
|
|
50
|
-
var _this = this;
|
|
51
|
-
var moves = [];
|
|
52
|
-
var opponents = this.game.players.filter(function (player) { return player !== _this.player; });
|
|
53
|
-
try {
|
|
54
|
-
for (var opponents_1 = __values(opponents), opponents_1_1 = opponents_1.next(); !opponents_1_1.done; opponents_1_1 = opponents_1.next()) {
|
|
55
|
-
var opponent = opponents_1_1.value;
|
|
56
|
-
var favor = this.material(MaterialType_1.MaterialType.FavorToken).location(LocationType_1.LocationType.PlayerFavor).player(opponent);
|
|
57
|
-
if (favor.getQuantity()) {
|
|
58
|
-
moves.push(favor.deleteItem(1));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
-
finally {
|
|
64
|
-
try {
|
|
65
|
-
if (opponents_1_1 && !opponents_1_1.done && (_a = opponents_1.return)) _a.call(opponents_1);
|
|
66
|
-
}
|
|
67
|
-
finally { if (e_1) throw e_1.error; }
|
|
68
|
-
}
|
|
69
|
-
return moves;
|
|
70
|
-
};
|
|
71
|
-
return NagaEffectRule;
|
|
72
|
-
}(PlayerEffectRule_1.PlayerEffectRule))
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
};
|
|
1
|
+
import { areAdjacentSquares } from '@gamepark/rules-api';
|
|
2
|
+
import { LocationType } from '../../LocationType';
|
|
3
|
+
import { MaterialType } from '../../MaterialType';
|
|
4
|
+
import { isCrushed } from '../Effect';
|
|
5
|
+
import { PlayerEffectRule } from '../PlayerEffectRule';
|
|
6
|
+
export const Naga = {
|
|
7
|
+
invoke: [{}, { gem: 2 }, { gem: 1 }],
|
|
8
|
+
effects: [
|
|
9
|
+
{
|
|
10
|
+
preventMove: (card, naga) => naga.location.player === card.location.player && areAdjacentSquares(naga.location, card.location)
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
trigger: isCrushed,
|
|
14
|
+
rule: class NagaEffectRule extends PlayerEffectRule {
|
|
15
|
+
playEffect() {
|
|
16
|
+
const moves = [];
|
|
17
|
+
const opponents = this.game.players.filter((player) => player !== this.player);
|
|
18
|
+
for (const opponent of opponents) {
|
|
19
|
+
const favor = this.material(MaterialType.FavorToken).location(LocationType.PlayerFavor).player(opponent);
|
|
20
|
+
if (favor.getQuantity()) {
|
|
21
|
+
moves.push(favor.deleteItem(1));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return moves;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Rakshasa: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Rakshasa: EntityDescription;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
rule: RakshasaEffectRule_1.RakshasaEffectRule
|
|
11
|
-
}
|
|
12
|
-
};
|
|
1
|
+
import { RakshasaEffectRule } from '../../../rules/effects/RakshasaEffectRule';
|
|
2
|
+
import { TriggerEventType } from '../Effect';
|
|
3
|
+
export const Rakshasa = {
|
|
4
|
+
invoke: [{ gem: 1 }, { favor: 1 }, { gem: 1 }],
|
|
5
|
+
effect: {
|
|
6
|
+
trigger: (effect) => effect.type === TriggerEventType.Infinite,
|
|
7
|
+
rule: RakshasaEffectRule
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Shiva: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Shiva: EntityDescription;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
rule: ShivaEffectRule_1.ShivaEffectRule
|
|
11
|
-
}
|
|
12
|
-
};
|
|
1
|
+
import { ShivaEffectRule } from '../../../rules/effects/ShivaEffectRule';
|
|
2
|
+
import { oncePerTurn } from '../Effect';
|
|
3
|
+
export const Shiva = {
|
|
4
|
+
invoke: [{ gem: 2 }, {}, { gem: 1, favor: 1 }],
|
|
5
|
+
effect: {
|
|
6
|
+
trigger: oncePerTurn,
|
|
7
|
+
rule: ShivaEffectRule
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Vetala: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Vetala: EntityDescription;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
rule: VetalaEffectRule_1.VetalaEffectRule
|
|
11
|
-
}
|
|
12
|
-
};
|
|
1
|
+
import { VetalaEffectRule } from '../../../rules/effects/VetalaEffectRule';
|
|
2
|
+
import { isPlaced } from '../Effect';
|
|
3
|
+
export const Vetala = {
|
|
4
|
+
invoke: [{}, { gem: 1 }, { favor: 1 }],
|
|
5
|
+
effect: {
|
|
6
|
+
trigger: isPlaced,
|
|
7
|
+
rule: VetalaEffectRule
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Vishnu: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Vishnu: EntityDescription;
|
|
@@ -1,68 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
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.Vishnu = void 0;
|
|
44
|
-
var Destiny_1 = require("../../Destiny");
|
|
45
|
-
var LocationType_1 = require("../../LocationType");
|
|
46
|
-
var Pantheon_1 = require("../../Pantheon");
|
|
47
|
-
var Effect_1 = require("../Effect");
|
|
48
|
-
var PlayerEffectRule_1 = require("../PlayerEffectRule");
|
|
49
|
-
exports.Vishnu = {
|
|
50
|
-
invoke: [{}, { gem: 1, favor: 1 }, { gem: 1 }],
|
|
51
|
-
effect: {
|
|
52
|
-
trigger: Effect_1.isPlaced,
|
|
53
|
-
rule: (function (_super) {
|
|
54
|
-
__extends(VishnuEffectRule, _super);
|
|
55
|
-
function VishnuEffectRule() {
|
|
56
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
-
}
|
|
58
|
-
VishnuEffectRule.prototype.playEffect = function () {
|
|
59
|
-
var godsToExile = new Destiny_1.Destiny(this.game).cardsWithoutToken.location(LocationType_1.LocationType.SanctuaryGodSpot);
|
|
60
|
-
if (!godsToExile.length)
|
|
61
|
-
return [];
|
|
62
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
63
|
-
return __spreadArray(__spreadArray([], __read(godsToExile.deleteItems()), false), [pantheon.gainFavor(godsToExile.length * 2)], false);
|
|
64
|
-
};
|
|
65
|
-
return VishnuEffectRule;
|
|
66
|
-
}(PlayerEffectRule_1.PlayerEffectRule))
|
|
67
|
-
}
|
|
68
|
-
};
|
|
1
|
+
import { Destiny } from '../../Destiny';
|
|
2
|
+
import { LocationType } from '../../LocationType';
|
|
3
|
+
import { Pantheon } from '../../Pantheon';
|
|
4
|
+
import { isPlaced } from '../Effect';
|
|
5
|
+
import { PlayerEffectRule } from '../PlayerEffectRule';
|
|
6
|
+
export const Vishnu = {
|
|
7
|
+
invoke: [{}, { gem: 1, favor: 1 }, { gem: 1 }],
|
|
8
|
+
effect: {
|
|
9
|
+
trigger: isPlaced,
|
|
10
|
+
rule: class VishnuEffectRule extends PlayerEffectRule {
|
|
11
|
+
playEffect() {
|
|
12
|
+
const godsToExile = new Destiny(this.game).cardsWithoutToken.location(LocationType.SanctuaryGodSpot);
|
|
13
|
+
if (!godsToExile.length)
|
|
14
|
+
return [];
|
|
15
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
16
|
+
return [...godsToExile.deleteItems(), pantheon.gainFavor(godsToExile.length * 2)];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EntityDescription } from '../EntityDescription';
|
|
2
|
-
export declare const Amaru: EntityDescription;
|
|
1
|
+
import { EntityDescription } from '../EntityDescription';
|
|
2
|
+
export declare const Amaru: EntityDescription;
|
|
@@ -1,38 +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.Amaru = void 0;
|
|
19
|
-
var Pantheon_1 = require("../../Pantheon");
|
|
20
|
-
var Effect_1 = require("../Effect");
|
|
21
|
-
var PlayerEffectRule_1 = require("../PlayerEffectRule");
|
|
22
|
-
exports.Amaru = {
|
|
23
|
-
invoke: [{ gem: 1 }, {}, { favor: 1 }],
|
|
24
|
-
effect: {
|
|
25
|
-
trigger: Effect_1.isPlaced,
|
|
26
|
-
rule: (function (_super) {
|
|
27
|
-
__extends(AmaruEffectRule, _super);
|
|
28
|
-
function AmaruEffectRule() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
31
|
-
AmaruEffectRule.prototype.playEffect = function () {
|
|
32
|
-
var pantheon = new Pantheon_1.Pantheon(this.game, this.player);
|
|
33
|
-
return [pantheon.gainGems(pantheon.mythologies.length)];
|
|
34
|
-
};
|
|
35
|
-
return AmaruEffectRule;
|
|
36
|
-
}(PlayerEffectRule_1.PlayerEffectRule))
|
|
37
|
-
}
|
|
38
|
-
};
|
|
1
|
+
import { Pantheon } from '../../Pantheon';
|
|
2
|
+
import { isPlaced } from '../Effect';
|
|
3
|
+
import { PlayerEffectRule } from '../PlayerEffectRule';
|
|
4
|
+
export const Amaru = {
|
|
5
|
+
invoke: [{ gem: 1 }, {}, { favor: 1 }],
|
|
6
|
+
effect: {
|
|
7
|
+
trigger: isPlaced,
|
|
8
|
+
rule: class AmaruEffectRule extends PlayerEffectRule {
|
|
9
|
+
playEffect() {
|
|
10
|
+
const pantheon = new Pantheon(this.game, this.player);
|
|
11
|
+
return [pantheon.gainGems(pantheon.mythologies.length)];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|